From 544487218a9c4933366d2cc14d936ad0eaa899e8 Mon Sep 17 00:00:00 2001 From: Ceikry Date: Mon, 4 Sep 2023 03:13:28 +0000 Subject: [PATCH] Fixed an issue in replaceSlot logic causing visual bugs with pizza --- Server/src/main/core/api/ContentAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/core/api/ContentAPI.kt b/Server/src/main/core/api/ContentAPI.kt index 012eb21b6..0d921a48e 100644 --- a/Server/src/main/core/api/ContentAPI.kt +++ b/Server/src/main/core/api/ContentAPI.kt @@ -337,7 +337,7 @@ fun replaceSlot(player: Player, slot: Int, item: Item, currentItem: Item? = null Container.BANK -> player.bank } - if (item.id == -1 || item.amount <= 0) { + if (item.id == 65535 || item.amount <= 0) { return cont.replace(null, slot) }