(cherry picked from commit 8fcb53e498)
This commit is contained in:
MelonHell 2023-12-06 09:55:02 +03:00 committed by Matt Worzala
parent 787c56126e
commit a588e2a652

View File

@ -524,7 +524,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
this.instance.getEntityTracker().nearbyEntitiesByChunkRange(respawnPosition, Math.min(MinecraftServer.getChunkViewDistance(), settings.getViewDistance()), this.instance.getEntityTracker().nearbyEntitiesByChunkRange(respawnPosition, Math.min(MinecraftServer.getChunkViewDistance(), settings.getViewDistance()),
EntityTracker.Target.ENTITIES, entity -> { EntityTracker.Target.ENTITIES, entity -> {
// Skip refreshing self with a new viewer // Skip refreshing self with a new viewer
if (!entity.getUuid().equals(uuid)) { if (!entity.getUuid().equals(uuid) && entity.isViewer(this)) {
entity.updateNewViewer(this); entity.updateNewViewer(this);
} }
}); });