mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 19:18:12 +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) {
|
for (long chunkIndex : visibleChunksEntity) {
|
||||||
getEntitiesInChunk(chunkIndex).forEach(ent -> {
|
getEntitiesInChunk(chunkIndex).forEach(ent -> {
|
||||||
if (isPlayer) {
|
if (isPlayer) {
|
||||||
ent.addViewer((Player) entity);
|
if (ent.isAutoViewable())
|
||||||
|
ent.addViewer((Player) entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ent instanceof Player) {
|
if (ent instanceof Player) {
|
||||||
|
Loading…
Reference in New Issue
Block a user