Fixed max health set to 0.5 hearts when unset in the kit file

This commit is contained in:
cervinakuy committed 2021-07-04 13:15:16 -07:00
1 parent 693cdb1846
commit 683c46f5fd
1 file changed
+1 -1
@@ -158,7 +158,7 @@ public class Kits {
kit.setLevel(resource.getInt("Kit.Level"));
kit.setCooldown(new Cooldown(resource.getString("Kit.Cooldown")));
kit.setHealth(resource.getInt("Kit.Health"));
kit.setHealth(resource.contains("Kit.Health") ? resource.getInt("Kit.Health") : 20);
kit.setHelmet(AttributeParser.getItemStackFromPath(resource, "Inventory.Armor.Helmet"));
kit.setChestplate(AttributeParser.getItemStackFromPath(resource, "Inventory.Armor.Chestplate"));