Clone kit items when given to players so the kit doesn't end up edited.

This commit is contained in:
Brianna O'Keefe 2024-03-11 17:49:17 -05:00
parent e95baae80a
commit 350ccac983
1 changed files with 1 additions and 1 deletions

View File

@ -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;