Test hotpatch kit

This commit is contained in:
Lixfel
2026-01-01 15:08:37 +01:00
parent ebb2ec817d
commit e4676d5eba
@@ -117,7 +117,7 @@ public class Kit {
if(kit.isList("Armor"))
armor = Objects.requireNonNull(kit.getList("Armor")).toArray(new ItemStack[0]);
else
armor = null;
armor = new ItemStack[]{ null, null, null, null};
leaderAllowed = kit.getBoolean("LeaderAllowed");
memberAllowed = kit.getBoolean("MemberAllowed");
if(kit.isList("Effects"))
@@ -261,7 +261,7 @@ public class Kit {
player.getInventory().setContents(inventory);
if(armor != null)
player.getInventory().setArmorContents(armor);
player.updateInventory();
player.updateInventory(); //TODO issue in 1.21.6?
if(effects != null)
player.addPotionEffects(effects);
}