Fixed bugs added stuff

This commit is contained in:
2022-06-05 05:27:46 +02:00
parent 6403f024cd
commit b1bdfbcb99
4 changed files with 4 additions and 4 deletions
@@ -32,7 +32,8 @@ public class FrameSpawnerLocation extends BukkitRunnable {
iterator.next().spawn(location, rotation);
else if (amount != 0) {
iterator = frames.iterator();
amount--;
if (amount > 0)
amount--;
if (repeatDelay <= 0)
return;
try { //Wait before repeating the frames
@@ -42,7 +42,7 @@ public class FrameSpawnerPlayer extends BukkitRunnable {
return;
}
ParticleSet activeParticleSet = playerSettings.getParticles(aPartType);
if (activeParticleSet == null || !activeParticleSet.getParticleId().equalsIgnoreCase(uniqueId) || playerSettings.hasActiveParticles()) {
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.");