Purge hidden entities on unload too

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-12-04 08:23:26 +11:00
parent 4f6a5feac8
commit 6646c417c5
3 changed files with 12 additions and 5 deletions

View File

@@ -301,7 +301,7 @@
+ if (entityplayer2.getBukkitEntity().canSee(entityplayer.getBukkitEntity())) {
+ entityplayer2.connection.send(packet);
+ } else {
+ entityplayer2.getBukkitEntity().removeDisconnectingPlayer(entityplayer.getBukkitEntity());
+ entityplayer2.getBukkitEntity().onEntityRemove(entityplayer);
+ }
}
+ // This removes the scoreboard (and player reference) for the specific player in the manager