mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02:32 +01:00
parent
787c56126e
commit
a588e2a652
@ -524,7 +524,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
this.instance.getEntityTracker().nearbyEntitiesByChunkRange(respawnPosition, Math.min(MinecraftServer.getChunkViewDistance(), settings.getViewDistance()),
|
||||
EntityTracker.Target.ENTITIES, entity -> {
|
||||
// Skip refreshing self with a new viewer
|
||||
if (!entity.getUuid().equals(uuid)) {
|
||||
if (!entity.getUuid().equals(uuid) && entity.isViewer(this)) {
|
||||
entity.updateNewViewer(this);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user