Fix double call to mergeItemStack (#19)

(cherry picked from commit 17cdf9cb99)
This commit is contained in:
Worive authored and Martin Robertz committed 2025-10-19 21:43:06 +02:00
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;