mirror of
https://github.com/songoda/EpicEnchants.git
synced 2025-03-13 15:20:07 +01:00
Elytras are chestplates... Sorta.
This commit is contained in:
parent
aace974db7
commit
c4cbddd28c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user