Change air particles to clouds

This is a bit better with performance than the spell particles
This commit is contained in:
MistPhizzle 2014-07-25 00:16:52 -04:00
parent d1b6497fe6
commit 6ee2af3b02
2 changed files with 5 additions and 4 deletions

View file

@ -1069,8 +1069,8 @@ public class Methods {
}
public static void playAirbendingParticles(Location loc) {
for (int i = 0; i < 30; i++) {
ParticleEffect.SPELL.display(loc, (float) Math.random(), (float) Math.random(), (float) Math.random(), 0, 1);
for (int i = 0; i < 20; i++) {
ParticleEffect.CLOUD.display(loc, (float) Math.random(), (float) Math.random(), (float) Math.random(), 0, 1);
}
}

View file

@ -224,7 +224,8 @@ public class AirBlast {
}
private void advanceLocation() {
ParticleEffect.SPELL.display(location, (float)0, (float)0, (float)0, (float)speed, (int)20);
Methods.playAirbendingParticles(location);
// ParticleEffect.SPELL.display(location, (float)0, (float)0, (float)0, (float)speed, (int)20);
// location.getWorld().playEffect(location, Effect.SMOKE, 4, (int) range);
location = location.add(direction.clone().multiply(speedfactor));
}
@ -329,7 +330,7 @@ public class AirBlast {
return;
}
ParticleEffect.SPELL.display(origin, (float) 0, (float) 0, 0F, (float) speed, 20);
Methods.playAirbendingParticles(origin);
// origin.getWorld().playEffect(origin, Effect.SMOKE, 4,
// (int) originselectrange);
}