Skip to content

Commit

Permalink
Fix Ztones Having craftingTank OreDict (#3940)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <dream-master@gmx.net>
  • Loading branch information
Ruling-0 and Dream-Master authored Feb 13, 2025
1 parent 2e41b0c commit 9ee8181
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/gregtech/loaders/load/GTItemIterator.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ public void run() {
tItem.setMaxStackSize(OrePrefixes.stone.mDefaultStackSize);
}
}
if (tName.equals("tile.tankBlock") && tBlock instanceof buildcraft.factory.BlockTank) {
GTOreDictUnificator.registerOre(OreDictNames.craftingTank, new ItemStack(tItem, 1, 0));
}
}
if (((tItem instanceof ItemFood)) && (tItem != ItemList.IC2_Food_Can_Filled.getItem())
&& (tItem != ItemList.IC2_Food_Can_Spoiled.getItem())) {
Expand Down Expand Up @@ -269,10 +272,6 @@ public void run() {
case "tile.pumpBlock" -> GTOreDictUnificator
.registerOre(OreDictNames.craftingPump, new ItemStack(tItem, 1, 0));

// buildcraft
case "tile.tankBlock" -> GTOreDictUnificator
.registerOre(OreDictNames.craftingTank, new ItemStack(tItem, 1, 0));

}
}
} catch (Throwable e) {
Expand Down

0 comments on commit 9ee8181

Please sign in to comment.