mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-10-26 14:23:55 +00:00
Fix double call to mergeItemStack (#19)
(cherry picked from commit 17cdf9cb99)
This commit is contained in:
1 parent
aecb3cb093
commit
e19e38eec9
1 file changed
+1
-3
@@ -201,9 +201,7 @@ public class ContainerPlayerExpanded extends Container {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (item instanceof ItemArmor armor && !((Slot) inventorySlots.get(craftingActive + armor.armorType)).getHasStack()) {
|
||||
} else if (item instanceof ItemArmor armor && !((Slot) inventorySlots.get(craftingActive + armor.armorType)).getHasStack()) {
|
||||
int armorSlot = craftingActive + armor.armorType;
|
||||
if (!mergeItemStack(originalStack, armorSlot, armorSlot + 1, false)) {
|
||||
returnStack = null;
|
||||
|
||||
Reference in new issue
Block a user