From 7786fea2c9b6ebd2ee585cdc516e384b2a543390 Mon Sep 17 00:00:00 2001 From: Edson Passos Date: Fri, 29 Sep 2023 10:13:07 -0300 Subject: [PATCH] fix: armor ignored in 1.9+ kits --- src/main/java/me/roinujnosde/titansbattle/types/Kit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/roinujnosde/titansbattle/types/Kit.java b/src/main/java/me/roinujnosde/titansbattle/types/Kit.java index 58e32115..350f2857 100644 --- a/src/main/java/me/roinujnosde/titansbattle/types/Kit.java +++ b/src/main/java/me/roinujnosde/titansbattle/types/Kit.java @@ -93,11 +93,11 @@ public ItemStack[] getContents() { public void set(@NotNull Player player) { PlayerInventory inventory = player.getInventory(); - inventory.setContents(contents); inventory.setHelmet(helmet); inventory.setChestplate(chestplate); inventory.setLeggings(leggings); inventory.setBoots(boots); + inventory.setContents(contents); } public static boolean inventoryHasItems(@NotNull Player player) {