Disable particles if player turns them off
This commit is contained in:
parent
5864918442
commit
1e70782c0d
|
|
@ -42,7 +42,7 @@ public class FrameSpawnerPlayer extends BukkitRunnable {
|
|||
return;
|
||||
}
|
||||
ParticleSet activeParticleSet = playerSettings.getParticles(aPartType);
|
||||
if (activeParticleSet == null || !activeParticleSet.getParticleId().equalsIgnoreCase(uniqueId)) {
|
||||
if (activeParticleSet == null || !activeParticleSet.getParticleId().equalsIgnoreCase(uniqueId) || playerSettings.hasActiveParticles()) {
|
||||
this.cancel();
|
||||
if (Config.DEBUG)
|
||||
Logger.info("Stopped repeating task due to player switching/disabling particles.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user