From 9a809966086b69e2a3a3b17e83e8be9eb9215389 Mon Sep 17 00:00:00 2001 From: Kiet <5054996+Kietyo@users.noreply.github.com> Date: Sun, 6 Jun 2021 16:12:49 -0700 Subject: [PATCH] Fix `1 + 1` -> `1 + i`. --- src/js/game/systems/item_processor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/game/systems/item_processor.js b/src/js/game/systems/item_processor.js index 025ae027..5fb57ad8 100644 --- a/src/js/game/systems/item_processor.js +++ b/src/js/game/systems/item_processor.js @@ -225,7 +225,7 @@ export class ItemProcessorSystem extends GameSystemWithFilter { // Check if all colors of the enabled slots are there for (let i = 0; i < slotStatus.length; ++i) { - if (slotStatus[i] && !processorComp.inputSlotsMap.has(1 + 1)) { + if (slotStatus[i] && !processorComp.inputSlotsMap.has(1 + i)) { // A slot which is enabled wasn't enabled. Make sure if there is anything on the quadrant, // it is not possible to paint, but if there is nothing we can ignore it for (let j = 0; j < 4; ++j) {