From 5e7485682a286aed7bffcfd1a80316e7722f3686 Mon Sep 17 00:00:00 2001 From: Nesseley Date: Sat, 25 Apr 2020 21:08:08 +0200 Subject: [PATCH] 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 --- changelog.md | 1 + src/main/java/com/garbagemule/MobArena/ArenaImpl.java | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.md b/changelog.md index 04e56d5..c201b20 100644 --- a/changelog.md +++ b/changelog.md @@ -13,6 +13,7 @@ These changes will (most likely) be included in the next version. ## [Unreleased] - A new `ready` state is now available for arena sign templates. Signs are in this state when all players in the lobby have readied up, but the arena has not yet started due to a start delay timer. Check the wiki for details. - Arena signs now support dynamic list entry variables for 4 different player lists. As an example, `` results in the name of a player in the lobby who hasn't readied up yet. This is useful for visualizing who is holding up the lobby. Check the wiki for details. +- Elytra are now supported chest pieces in class chests. - Config-files with missing `pet-items` nodes no longer errors. A missing `pet-items` node in `global-settings` is treated as empty, i.e. no pet items will be registered. ## [0.104.2] - 2020-01-03 diff --git a/src/main/java/com/garbagemule/MobArena/ArenaImpl.java b/src/main/java/com/garbagemule/MobArena/ArenaImpl.java index 0803263..066fcd2 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaImpl.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaImpl.java @@ -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;