Add comment
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user