From 498ed774a430cd70ce9e798f4873e2f79b4d0fea Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sun, 9 Feb 2025 21:59:12 +0100 Subject: [PATCH] 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. --- src/main/java/com/alttd/ctf/flag/Flag.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/alttd/ctf/flag/Flag.java b/src/main/java/com/alttd/ctf/flag/Flag.java index ca783b6..7dd087b 100644 --- a/src/main/java/com/alttd/ctf/flag/Flag.java +++ b/src/main/java/com/alttd/ctf/flag/Flag.java @@ -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?