mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-25 22:44:51 +00:00
Add support for multiple mods remapping the same item/block/tile entity.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user