Elytras are chestplates... Sorta.

This commit is contained in:
Brianna 2020-02-01 06:05:35 -05:00
parent aace974db7
commit c4cbddd28c

View File

@ -156,7 +156,7 @@ public final class ArmorEquipEvent extends PlayerEvent implements Cancellable {
if (itemStack == null || itemStack.getType().equals(Material.AIR)) return null;
String type = itemStack.getType().name();
if (type.endsWith("_HELMET") || type.endsWith("_SKULL")) return HELMET;
else if (type.endsWith("_CHESTPLATE")) return CHESTPLATE;
else if (type.endsWith("_CHESTPLATE") || type.equals("ELYTRA")) return CHESTPLATE;
else if (type.endsWith("_LEGGINGS")) return LEGGINGS;
else if (type.endsWith("_BOOTS")) return BOOTS;
else return null;