Fix #isAutoViewable

This commit is contained in:
themode 2020-12-23 10:21:48 +01:00
parent 978a1f5135
commit a6cb126d76

View File

@ -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) {