Fixed an issue in replaceSlot logic causing visual bugs with pizza

This commit is contained in:
Ceikry
2023-09-04 03:13:28 +00:00
committed by Ryan
parent fa45bcfe70
commit 544487218a
+1 -1
View File
@@ -337,7 +337,7 @@ fun replaceSlot(player: Player, slot: Int, item: Item, currentItem: Item? = null
Container.BANK -> player.bank Container.BANK -> player.bank
} }
if (item.id == -1 || item.amount <= 0) { if (item.id == 65535 || item.amount <= 0) {
return cont.replace(null, slot) return cont.replace(null, slot)
} }