This commit is contained in:
modmuss50 2018-04-15 13:34:19 +01:00
parent 3805285356
commit f66daa9349
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -64,7 +64,7 @@ public class IndustrialSawmillRecipes extends RecipeMethods {
NonNullList<ItemStack> logs = OreDictionary.getOres("logWood");
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++) {
ItemStack newStack = logStack.copy();
newStack.setItemDamage(i);
@ -77,6 +77,7 @@ public class IndustrialSawmillRecipes extends RecipeMethods {
}
}
} else {
logStack.setItemDamage(0); //Done to remove the wildcard value if the item doesnt have subtypes
inventoryCrafting.setInventorySlotContents(0, logStack.copy());
ItemStack output = findMatchingRecipe(inventoryCrafting);
if (!output.isEmpty()) {