diff --git a/src/main/java/me/mrCookieSlime/CSCoreLibPlugin/general/Inventory/ChestMenu.java b/src/main/java/me/mrCookieSlime/CSCoreLibPlugin/general/Inventory/ChestMenu.java index a913ed7c74..6b20deee07 100644 --- a/src/main/java/me/mrCookieSlime/CSCoreLibPlugin/general/Inventory/ChestMenu.java +++ b/src/main/java/me/mrCookieSlime/CSCoreLibPlugin/general/Inventory/ChestMenu.java @@ -131,15 +131,9 @@ public ChestMenu addItem(int slot, ItemStack item) { // do shallow copy due to Paper ItemStack system change // See also: https://github.com/PaperMC/Paper/pull/10852 ItemStack actual = item; - if (item instanceof SlimefunItemStack) { - ItemStack clone = new ItemStack(item.getType(), item.getAmount()); - - if (item.hasItemMeta()) { - clone.setItemMeta(item.getItemMeta()); - } - - actual = clone; - } + if (item != null) { + actual = new CustomItemStack(item); + } setSize((int) (Math.max(getSize(), Math.ceil((slot + 1) / 9d) * 9)));