Fix #1488
This commit is contained in:
parent
3805285356
commit
f66daa9349
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,7 @@ public class IndustrialSawmillRecipes extends RecipeMethods {
|
||||||
|
|
||||||
NonNullList<ItemStack> logs = OreDictionary.getOres("logWood");
|
NonNullList<ItemStack> logs = OreDictionary.getOres("logWood");
|
||||||
for (ItemStack logStack : logs) {
|
for (ItemStack logStack : logs) {
|
||||||
if (logStack.getItemDamage() == OreDictionary.WILDCARD_VALUE) {
|
if (logStack.getItemDamage() == OreDictionary.WILDCARD_VALUE && logStack.getHasSubtypes()) {
|
||||||
for (int i = 0; i < 16; i++) {
|
for (int i = 0; i < 16; i++) {
|
||||||
ItemStack newStack = logStack.copy();
|
ItemStack newStack = logStack.copy();
|
||||||
newStack.setItemDamage(i);
|
newStack.setItemDamage(i);
|
||||||
|
@ -77,6 +77,7 @@ public class IndustrialSawmillRecipes extends RecipeMethods {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
logStack.setItemDamage(0); //Done to remove the wildcard value if the item doesnt have subtypes
|
||||||
inventoryCrafting.setInventorySlotContents(0, logStack.copy());
|
inventoryCrafting.setInventorySlotContents(0, logStack.copy());
|
||||||
ItemStack output = findMatchingRecipe(inventoryCrafting);
|
ItemStack output = findMatchingRecipe(inventoryCrafting);
|
||||||
if (!output.isEmpty()) {
|
if (!output.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue