From e6e9d4358f0944e5051cd2b02f0d06bb95be8677 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 27 Nov 2024 21:50:28 +0100 Subject: [PATCH] fix newly introduced oob --- .../prettypipes/pipe/modules/craft/CraftingModuleItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }