mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-25 17:22:02 -07:00
Call CraftPlayer#onEntityRemove for all online players
This commit is contained in:
@@ -1238,7 +1238,7 @@
|
||||
+ // CraftBukkit start
|
||||
+ entity.valid = false;
|
||||
+ 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);
|
||||
+ }
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user