mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-16 23:55:14 +01:00
Do not add the entity as viewer multiple time
This commit is contained in:
parent
f85b2c4aad
commit
7b6f4b365b
@ -1500,7 +1500,7 @@ public class Player extends LivingEntity implements CommandSender {
|
||||
entity.addViewer(this);
|
||||
}
|
||||
|
||||
if (entity instanceof Player && entity.isAutoViewable()) {
|
||||
if (entity instanceof Player && entity.isAutoViewable() && !viewers.contains(entity)) {
|
||||
addViewer((Player) entity);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user