Add support for Elytra as chest pieces in class chests.

Makes the class chest armor guessing logic pair `"ELYTRA"` up with the
chest piece slot. This specific matching works, because there are no
underscores in the `"ELYTRA"` item name.

Fixes #616
This commit is contained in:
Nesseley
2020-04-25 21:20:07 +02:00
committed by Andreas Troelsen
parent 8426be46fb
commit 5e7485682a
2 changed files with 2 additions and 0 deletions
@@ -1189,6 +1189,7 @@ public class ArenaImpl implements Arena
makeUnbreakable(stack);
}
switch (type) {
case "ELYTRA":
case "CHESTPLATE": chestplate = stack; break;
case "LEGGINGS": leggings = stack; break;
case "BOOTS": boots = stack; break;