mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 13:42:25 -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