Fix Level Maintainer Bug (#478)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
attempt0andgithub-actions[bot] authored and GitHub committed 2026-10-13 17:27:49 +02:00
1 parent ff129e46d9
commit ec682b28c3
1 file changed
+6 -3
@@ -192,7 +192,7 @@ public class TileLevelMaintainer extends AENetworkTile
IAEStack<?> itemToBegin = null; IAEStack<?> itemToBegin = null;
int itemToBeginIdx = -1; int itemToBeginIdx = -1;
for (int j = 0; j < REQ_COUNT; ++j) { req: for (int j = 0; j < REQ_COUNT; ++j) {
int i = (firstRequest + j) % REQ_COUNT; int i = (firstRequest + j) % REQ_COUNT;
if (requests[i] == null) continue; if (requests[i] == null) continue;
@@ -248,8 +248,11 @@ public class TileLevelMaintainer extends AENetworkTile
// Walking every CPU to see whether the item is already being // Walking every CPU to see whether the item is already being
// made is comparatively expensive // made is comparatively expensive
if (craftingGrid.isRequesting(craftItem)) { for (ICraftingCPU cpu : craftingGrid.getCpus()) {
continue; IAEStack<?> output = cpu.getFinalMultiOutput();
if (output != null && output.isSameType(craftItem)) {
continue req;
}
} }
// do crafting // do crafting