Disable particles if player turns them off
This commit is contained in:
parent
f2fbd00a4b
commit
f48d2166b4
|
|
@ -39,7 +39,7 @@ public class ActivateParticleSet implements GUIAction {
|
||||||
playerSettings.addParticle(particleSet.getAPartType(), particleSet);
|
playerSettings.addParticle(particleSet.getAPartType(), particleSet);
|
||||||
else
|
else
|
||||||
playerSettings.removeParticle(particleSet.getAPartType());
|
playerSettings.removeParticle(particleSet.getAPartType());
|
||||||
if (enable && !particleSet.getAPartType().hasEvent())
|
if (enable && !particleSet.getAPartType().hasEvent() && playerSettings.hasActiveParticles())
|
||||||
particleSet.run(player, playerSettings);
|
particleSet.run(player, playerSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user