mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 02:57:37 +01:00
Fix #isAutoViewable
This commit is contained in:
parent
978a1f5135
commit
a6cb126d76
@ -861,7 +861,8 @@ public abstract class Instance implements BlockModifier, EventHandler, DataConta
|
||||
for (long chunkIndex : visibleChunksEntity) {
|
||||
getEntitiesInChunk(chunkIndex).forEach(ent -> {
|
||||
if (isPlayer) {
|
||||
ent.addViewer((Player) entity);
|
||||
if (ent.isAutoViewable())
|
||||
ent.addViewer((Player) entity);
|
||||
}
|
||||
|
||||
if (ent instanceof Player) {
|
||||
|
Loading…
Reference in New Issue
Block a user