From 2232a302583ce12e39ae56ee4280ffff30666d3c Mon Sep 17 00:00:00 2001 From: Edson Passos Date: Sat, 5 Aug 2023 09:35:28 -0300 Subject: [PATCH] fix: attempt at clearing kit armor --- .../titansbattle/listeners/ItemsProtectionListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/roinujnosde/titansbattle/listeners/ItemsProtectionListener.java b/src/main/java/me/roinujnosde/titansbattle/listeners/ItemsProtectionListener.java index 972d3a76..ebebffe7 100644 --- a/src/main/java/me/roinujnosde/titansbattle/listeners/ItemsProtectionListener.java +++ b/src/main/java/me/roinujnosde/titansbattle/listeners/ItemsProtectionListener.java @@ -53,6 +53,7 @@ private void process(@NotNull Player player) { if (new NBTItem(item).getBoolean(Kit.NBT_TAG)) { plugin.getLogger().log(Level.INFO, format("Removed kit item from %s's inventory", player.getName())); inventory.remove(item); + item.setAmount(0); } } }