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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user