fix newly introduced oob

This commit is contained in:
Ell 2024-11-27 21:50:28 +01:00
parent 24b1bbd84b
commit e6e9d4358f

View file

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