From 350ccac983c2200e0f6893b16d1acc29aa66a689 Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Mon, 11 Mar 2024 17:49:17 -0500 Subject: [PATCH] Clone kit items when given to players so the kit doesn't end up edited. --- src/main/java/com/craftaro/ultimatekits/kit/KitHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/craftaro/ultimatekits/kit/KitHandler.java b/src/main/java/com/craftaro/ultimatekits/kit/KitHandler.java index f819623..5fab3c1 100644 --- a/src/main/java/com/craftaro/ultimatekits/kit/KitHandler.java +++ b/src/main/java/com/craftaro/ultimatekits/kit/KitHandler.java @@ -276,7 +276,7 @@ public class KitHandler { plugin.getGuiManager().showGUI(player, new AnimatedKitGui(plugin, player, kit, item.getItem())); return true; } else { - ItemStack parseStack = item.getContent().process(player); + ItemStack parseStack = item.getContent().process(player).clone(); if (!(item.getContent() instanceof KitContentEconomy || item.getContent() instanceof KitContentCommand)) { if (Settings.AUTO_EQUIP_ARMOR.getBoolean() && ArmorType.equip(player, parseStack)) { continue;