mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-07-06 14:01:28 +00:00
Hide particles from the owner if they are vanished
This commit is contained in:
parent
4ce525785a
commit
fe9b580baf
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue