Fix TURTLE_HELMET being included in 1.12 and below

This commit is contained in:
fullwall 2018-09-01 21:22:32 +08:00
parent 11166c8bbe
commit 9d14b76d10

View File

@ -81,7 +81,7 @@ public class GenericEquipper implements Equipper {
SpigotUtil.isUsing1_13API() ? Material.GOLDEN_CHESTPLATE : Material.valueOf("GOLD_CHESTPLATE"));
private static Set<Material> HELMETS = EnumSet.of(Material.PUMPKIN, Material.JACK_O_LANTERN,
Material.LEATHER_HELMET, Material.CHAINMAIL_HELMET, Material.IRON_HELMET, Material.DIAMOND_HELMET,
Material.TURTLE_HELMET,
SpigotUtil.isUsing1_13API() ? Material.TURTLE_HELMET : Material.LEATHER_HELMET,
SpigotUtil.isUsing1_13API() ? Material.GOLDEN_HELMET : Material.valueOf("GOLD_HELMET"));
private static Set<Material> LEGGINGS = EnumSet.of(Material.CHAINMAIL_LEGGINGS, Material.DIAMOND_LEGGINGS,
Material.IRON_LEGGINGS, Material.LEATHER_LEGGINGS,