Trying to be smarter about recipes involving items that do not leave the crafting grid

This commit is contained in:
pahimar 2015-02-09 19:08:40 -05:00
parent e3559098a0
commit f58f5462c0

View file

@ -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);
}