Add comment

This commit is contained in:
raoulvdberge
2017-11-13 23:16:04 +01:00
parent f36e4680f6
commit 4edaaa42fd

View File

@@ -63,6 +63,7 @@ public class NetworkNodeCrafter extends NetworkNode implements ICraftingPatternC
ItemStack patternStack = patterns.getStackInSlot(i); ItemStack patternStack = patterns.getStackInSlot(i);
if (!patternStack.isEmpty()) { if (!patternStack.isEmpty()) {
// We copy the pattern stack because if we remove it from the inventory, the crafting task will use a pattern with an invalid stack...
ICraftingPattern pattern = ((ICraftingPatternProvider) patternStack.getItem()).create(world, patternStack.copy(), this); ICraftingPattern pattern = ((ICraftingPatternProvider) patternStack.getItem()).create(world, patternStack.copy(), this);
if (pattern.isValid()) { if (pattern.isValid()) {