mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Call CraftPlayer#onEntityRemove for all online players
This commit is contained in:
parent
66e1ce8504
commit
7acf73ce66
1 changed files with 1 additions and 1 deletions
|
@ -1238,7 +1238,7 @@
|
||||||
+ // CraftBukkit start
|
+ // CraftBukkit start
|
||||||
+ entity.valid = false;
|
+ entity.valid = false;
|
||||||
+ if (!(entity instanceof ServerPlayer)) {
|
+ if (!(entity instanceof ServerPlayer)) {
|
||||||
+ for (ServerPlayer player : ServerLevel.this.players) {
|
+ for (ServerPlayer player : ServerLevel.this.server.getPlayerList().players) { // Paper - call onEntityRemove for all online players
|
||||||
+ player.getBukkitEntity().onEntityRemove(entity);
|
+ player.getBukkitEntity().onEntityRemove(entity);
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
|
Loading…
Reference in a new issue