Fix double call to mergeItemStack (#19)

This commit is contained in:
Worive authored and GitHub committed 2025-10-19 21:42:04 +02:00
1 parent e25659c62f
commit 17cdf9cb99
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;