mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
Call CraftPlayer#onEntityRemove for all online players
This commit is contained in:
@@ -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);
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
Reference in New Issue
Block a user