Disable particles if player turns them off
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user