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

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