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 <garbagemule@gmail.com>
This commit is contained in:
Nesseley 2022-03-07 17:45:16 +01:00 committed by GitHub
parent c88f20c46f
commit 3e2c614c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -295,7 +295,7 @@ public class ArenaClass
case SHULKER_SHELL:
return true;
}
return type.name().endsWith("_SHULKER_BOX");
return type.name().endsWith("SHULKER_BOX");
}
}
}