From 3e2c614c1837297db7562e4374a1b7c260d13df4 Mon Sep 17 00:00:00 2001 From: Nesseley Date: Mon, 7 Mar 2022 17:45:16 +0100 Subject: [PATCH] Remove normal/undyed shulker boxes from My Items inventories. Removes the first `_` in the `_SHULKER_BOX` matching to ensure that normal shulker boxes with ID `SHULKER_BOX` are removed from My Items as well. Co-authored-by: Andreas Troelsen --- changelog.md | 1 + src/main/java/com/garbagemule/MobArena/ArenaClass.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index a12f2b9..5e02f26 100644 --- a/changelog.md +++ b/changelog.md @@ -38,6 +38,7 @@ These changes will (most likely) be included in the next version. - Flaming arrows now ignite TNT blocks in the arena. - Players no longer take fall damage when they leave (or get removed from) an arena while falling. - Players no longer take damage from projectiles shot by pets of other players. +- Normal shulker boxes are now properly removed from inventories of players using the My Items class. - MobArena no longer nags players with the `mobarena.admin.teleport` permission when they engage in a teleport that would have otherwise been blocked. - MobArena now correctly sets the source property on auto-ignited TNT. diff --git a/src/main/java/com/garbagemule/MobArena/ArenaClass.java b/src/main/java/com/garbagemule/MobArena/ArenaClass.java index 217f6f9..cd74787 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaClass.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaClass.java @@ -295,7 +295,7 @@ public class ArenaClass case SHULKER_SHELL: return true; } - return type.name().endsWith("_SHULKER_BOX"); + return type.name().endsWith("SHULKER_BOX"); } } }