From d3118ac5d82238cd66fd213b3c2c5b8f7744f260 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Wed, 26 Jan 2022 23:27:15 -0800 Subject: [PATCH] Yay boolean logic errors (#39) --- dependencies.gradle | 2 +- .../tools/inventory/CraftingStationContainer.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 89a893df..481ec1f2 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -3,7 +3,7 @@ dependencies { compile("com.github.GTNewHorizons:Mantle:0.3.4:dev") compile("com.github.GTNewHorizons:ForgeMultipart:1.2.7:dev") - compile("com.github.GTNewHorizons:NotEnoughItems:2.1.22-GTNH:dev") + compile("com.github.GTNewHorizons:NotEnoughItems:2.2.1-GTNH:dev") compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.1:dev") compileOnly("com.github.GTNewHorizons:inventory-tweaks:1.5.13:api") compileOnly("com.github.GTNewHorizons:waila:1.5.18:api") diff --git a/src/main/java/tconstruct/tools/inventory/CraftingStationContainer.java b/src/main/java/tconstruct/tools/inventory/CraftingStationContainer.java index ed8d60cd..9beae996 100644 --- a/src/main/java/tconstruct/tools/inventory/CraftingStationContainer.java +++ b/src/main/java/tconstruct/tools/inventory/CraftingStationContainer.java @@ -139,15 +139,15 @@ public class CraftingStationContainer extends Container { return null; } - ItemStack ret = slot.getStack().copy(); - ItemStack itemstack = slot.getStack().copy(); + ItemStack itemstack = slot.getStack(); + ItemStack ret = itemstack.copy(); boolean nothingDone = true; if (index == 0) { // Crafting Result if (ret.getItem() instanceof IModifyable) { - nothingDone &= this.mergeCraftedStack(itemstack, logic.getSizeInventory(), this.inventorySlots.size(), true, entityPlayer); + nothingDone &= !this.mergeCraftedStack(itemstack, logic.getSizeInventory(), this.inventorySlots.size(), true, entityPlayer); } else { // First refill the attached chests nothingDone &= this.refillChest(itemstack);