Yay boolean logic errors (#39)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2022-01-27 08:27:15 +01:00
1 parent 88b284fc9f
commit d3118ac5d8
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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")
@@ -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);