mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-26 10:01:36 +01:00
Fix auto viewable during viewers refresh
This commit is contained in:
parent
18eab183a0
commit
557ec7ca83
@ -1597,11 +1597,11 @@ public class Player extends LivingEntity implements CommandSender {
|
||||
|
||||
// Manage entities in unchecked chunks
|
||||
EntityUtils.forEachRange(instance, newChunk.toPosition(), entityViewDistance, entity -> {
|
||||
if (isAutoViewable() && !entity.viewers.contains(this)) {
|
||||
if (entity.isAutoViewable() && !entity.viewers.contains(this)) {
|
||||
entity.addViewer(this);
|
||||
}
|
||||
|
||||
if (entity instanceof Player && entity.isAutoViewable() && !viewers.contains(entity)) {
|
||||
if (entity instanceof Player && isAutoViewable() && !viewers.contains(entity)) {
|
||||
addViewer((Player) entity);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user