mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Change air particles to clouds
This is a bit better with performance than the spell particles
This commit is contained in:
parent
d1b6497fe6
commit
6ee2af3b02
2 changed files with 5 additions and 4 deletions
|
@ -1069,8 +1069,8 @@ public class Methods {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void playAirbendingParticles(Location loc) {
|
public static void playAirbendingParticles(Location loc) {
|
||||||
for (int i = 0; i < 30; i++) {
|
for (int i = 0; i < 20; i++) {
|
||||||
ParticleEffect.SPELL.display(loc, (float) Math.random(), (float) Math.random(), (float) Math.random(), 0, 1);
|
ParticleEffect.CLOUD.display(loc, (float) Math.random(), (float) Math.random(), (float) Math.random(), 0, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,8 @@ public class AirBlast {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void advanceLocation() {
|
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.getWorld().playEffect(location, Effect.SMOKE, 4, (int) range);
|
||||||
location = location.add(direction.clone().multiply(speedfactor));
|
location = location.add(direction.clone().multiply(speedfactor));
|
||||||
}
|
}
|
||||||
|
@ -329,7 +330,7 @@ public class AirBlast {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ParticleEffect.SPELL.display(origin, (float) 0, (float) 0, 0F, (float) speed, 20);
|
Methods.playAirbendingParticles(origin);
|
||||||
// origin.getWorld().playEffect(origin, Effect.SMOKE, 4,
|
// origin.getWorld().playEffect(origin, Effect.SMOKE, 4,
|
||||||
// (int) originselectrange);
|
// (int) originselectrange);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue