Add support for multiple mods remapping the same item/block/tile entity.

This commit is contained in:
Guillaume Mercier committed 2026-01-19 11:52:40 -05:00
1 parent 2641e10174
commit 4d2c1ba3fc
5 files changed
+31 -33

No files matched your search

@@ -23,11 +23,9 @@ public abstract class ItemFixerUtility {
String itemNameInternal = GameRegistry.findUniqueIdentifierFor(item).modId + ":"
+ GameRegistry.findUniqueIdentifierFor(item).name;
Function<NBTTagCompound, NBTTagCompound> transformer = ItemStackReplacementManager
.getItemReplacement(itemNameInternal);
if (transformer != null) {
transformer.apply(tag);
for (Function<NBTTagCompound, NBTTagCompound> transformer : ItemStackReplacementManager
.getItemReplacement(itemNameInternal)) {
if (transformer.apply(tag) != null) break;
}
}
}