diff --git a/src/main/java/de/ellpeck/prettypipes/pipe/modules/craft/CraftingModuleItem.java b/src/main/java/de/ellpeck/prettypipes/pipe/modules/craft/CraftingModuleItem.java index ca27bdf..6db4541 100644 --- a/src/main/java/de/ellpeck/prettypipes/pipe/modules/craft/CraftingModuleItem.java +++ b/src/main/java/de/ellpeck/prettypipes/pipe/modules/craft/CraftingModuleItem.java @@ -94,7 +94,7 @@ public class CraftingModuleItem extends ModuleItem { if (!remain.isEmpty()) { var remainRequest = new NetworkLock(lock.location, remain); // if we're ensuring item order, we need to insert the remaining request at the start so that it gets processed first - var index = ensureItemOrder ? 0 : tile.craftResultRequests.size(); + var index = ensureItemOrder ? 0 : locks.size(); locks.add(index, remainRequest); network.createNetworkLock(remainRequest); }