Spawn ambient particles along the course ahead instead of only around the player

This commit is contained in:
MineTec committed 2026-10-10 12:57:23 +02:00
1 parent de3578eafe
commit 40bedc3c43
1 file changed
+4 -2
@@ -17,7 +17,9 @@ import java.util.function.Supplier;
*/
class StageAtmosphere {
private static final int TIME_TRANSITION_TICKS = 100;
private static final Vec AMBIENT_SPREAD = new Vec(8, 3, 8);
// die Strecke läuft immer in +z: Partikel vom Spieler bis etwa 10 Sprünge voraus
private static final Vec AMBIENT_AHEAD = new Vec(0, 1.5, 14);
private static final Vec AMBIENT_SPREAD = new Vec(7, 4, 16);
private final Player player;
private final Instance world;
@@ -76,6 +78,6 @@ class StageAtmosphere {
private void spawnAmbient() {
if(this.stage.ambient() == null) return;
this.player.sendPacket(new ParticlePacket(this.stage.ambient(), this.player.getPosition().add(0, 1.5, 0), AMBIENT_SPREAD, 0.02f, 3));
this.player.sendPacket(new ParticlePacket(this.stage.ambient(), this.player.getPosition().add(AMBIENT_AHEAD), AMBIENT_SPREAD, 0.02f, 8));
}
}