Re-add exact choice shapeless support (#11546)

* Re-add exact choice shapeless support

* don't re-create maps every shapeless match

* add missing paper comment with last patch
This commit is contained in:
Jake Potrebic
2024-11-09 13:53:53 -08:00
parent 17f433aa38
commit 9ce7eb4087
3 changed files with 435 additions and 437 deletions

View File

@@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
entity.valid = false;
if (!(entity instanceof ServerPlayer)) {
- for (ServerPlayer player : ServerLevel.this.players) {
+ for (ServerPlayer player : server.getPlayerList().players) {
+ for (ServerPlayer player : ServerLevel.this.server.getPlayerList().players) { // Paper - call onEntityRemove for all online players
player.getBukkitEntity().onEntityRemove(entity);
}
}