Skip to content

Commit

Permalink
don't oredict nether woods if extratic is active to avoid breaking co…
Browse files Browse the repository at this point in the history
…mpat
  • Loading branch information
Midnight145 committed Sep 11, 2024
1 parent 38e67bf commit 4b7b5f5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/main/java/mods/natura/common/NContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,20 @@ public void addOredictSupport() {
OreDictionary.registerOre("treeLeaves", new ItemStack(darkLeaves, 1, OreDictionary.WILDCARD_VALUE));

// Wooden Planks
OreDictionary.registerOre("plankWood", new ItemStack(planks, 1, OreDictionary.WILDCARD_VALUE));

if (!Loader.isModLoaded("ExtraTiC")) {
// Wooden Planks
OreDictionary.registerOre("plankWood", new ItemStack(planks, 1, OreDictionary.WILDCARD_VALUE));

// Wooden Sticks
OreDictionary.registerOre("stickWood", new ItemStack(stickItem, 1, OreDictionary.WILDCARD_VALUE));
} else {
int[] toRegister = { 0, 1, 3, 5, 6, 7, 8, 9, 10 };
for (int i : toRegister) {
OreDictionary.registerOre("plankWood", new ItemStack(planks, 1, i));
OreDictionary.registerOre("stickWood", new ItemStack(stickItem, 1, i));
}
}

// Wooden Workbenches
if (PHNatura.enableWoodenWorkbenches) {
Expand Down Expand Up @@ -1900,9 +1913,6 @@ public void addOredictSupport() {

// Nether items
OreDictionary.registerOre("bowlWood", new ItemStack(bowlEmpty, 1, 0));

// Wooden Sticks
OreDictionary.registerOre("stickWood", new ItemStack(stickItem, 1, OreDictionary.WILDCARD_VALUE));
}

public void createEntities() {
Expand Down

0 comments on commit 4b7b5f5

Please sign in to comment.