mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Yay boolean logic errors (#39)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user