Trying to be smarter about recipes involving items that do not leave the crafting grid
This commit is contained in:
parent
e3559098a0
commit
f58f5462c0
|
@ -36,7 +36,7 @@ public class EnergyValueHelper
|
|||
}
|
||||
}
|
||||
// If we are dealing with a "tool" (container item), assume it's value is 0 (since it won't be used up in the recipe)
|
||||
else if (itemStack.getItem() != null && itemStack.getItem().getContainerItem(itemStack) != null)
|
||||
else if (itemStack.getItem() != null && (itemStack.getItem().getContainerItem(itemStack) != null || !itemStack.getItem().doesContainerItemLeaveCraftingGrid(itemStack)))
|
||||
{
|
||||
wrappedStackValue = new EnergyValue(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue