Increase particle trail density and remove obsolete comment.

Updated the particle trail to spawn three particles instead of one, enhancing visual clarity. Also removed an outdated TODO comment that is no longer relevant to the functionality.
This commit is contained in:
Teriuihi 2025-02-09 21:59:12 +01:00
parent e95dabccac
commit 498ed774a4

View File

@ -141,7 +141,7 @@ public class Flag implements Runnable {
private void spawnTrail() {
TeamColor color = winningTeam.getColor();
particleTrail.forEach(location -> location.getWorld().spawnParticle(Particle.DUST, location, 1, 0, 0, 0,
particleTrail.forEach(location -> location.getWorld().spawnParticle(Particle.DUST, location, 3, 0, 0, 0,
new Particle.DustOptions(Color.fromRGB(color.r(), color.g(), color.b()), 1)));
if (particleTrail.size() > 15) {
particleTrail.removeFirst();
@ -161,7 +161,6 @@ public class Flag implements Runnable {
location.setY(location.getY() + 1);
particleTrail.add(location);
spawnTrail();
//TODO spawn some particles or something so a trail is made for specific classes to follow?
return;
}
//TODO better message? mayb with a text thing on the screen?