Hide particles from the owner if they are vanished

This commit is contained in:
Esophose 2020-10-01 22:41:05 -06:00
parent 4ce525785a
commit fe9b580baf
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ public final class PlayerParticlesAPI {
private static PlayerParticlesAPI INSTANCE;
private PlayerParticles playerParticles;
private final PlayerParticles playerParticles;
private PlayerParticlesAPI() {
this.playerParticles = PlayerParticles.getInstance();

View file

@ -77,7 +77,7 @@ public abstract class ParticleSpawner {
for (PPlayer pplayer : PlayerParticles.getInstance().getManager(ParticleManager.class).getPPlayers()) {
Player p = pplayer.getPlayer();
if (p != owner && !this.canSee(p, owner))
if (!this.canSee(p, owner))
continue;
if (p != null && pplayer.canSeeParticles() && p.getWorld().equals(center.getWorld()) && center.distanceSquared(p.getLocation()) <= range)