mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-25 14:34:40 +00:00
move internal stuff to a non-api endpoint and clean-up added structures
This commit is contained in:
1 parent
5d4b657868
commit
6d58c41dd8
7 files changed
+104
-71
No files matched your search
@@ -6,9 +6,7 @@ import java.util.function.Function;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
import com.gtnewhorizons.postea.PosteaMissingMappingHandler;
|
||||
import com.gtnewhorizons.postea.api.IDExtenderCompat;
|
||||
import com.gtnewhorizons.postea.api.ItemStackReplacementManager;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
@@ -26,7 +24,7 @@ public abstract class ItemFixerUtility {
|
||||
String itemNameInternal = uuid.modId + ":" + uuid.name;
|
||||
|
||||
// abort early if no handlers
|
||||
Collection<Function<NBTTagCompound, NBTTagCompound>> handlers = ItemStackReplacementManager
|
||||
Collection<Function<NBTTagCompound, NBTTagCompound>> handlers = TransformerRegistry
|
||||
.getItemReplacement(itemNameInternal);
|
||||
if (handlers.isEmpty()) return;
|
||||
|
||||
@@ -38,7 +36,7 @@ public abstract class ItemFixerUtility {
|
||||
}
|
||||
|
||||
// if no handler overwrote anything on this stack, and it's a dummy, delete the stack.
|
||||
if (PosteaMissingMappingHandler.isDummyItem(item)) {
|
||||
if (MissingMappingHandler.isDummyItem(item)) {
|
||||
tag.removeTag("id");
|
||||
tag.removeTag("idExt");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user