forked from SteamWar/SteamWar
Refactor lobby particle runtime for multi-entry particles
Tick particles from per-player cached always/move lists, drop the per-instance listeners in Delayed and RandomParticle, and compute particle viewers once per tick instead of once per spawned point.
This commit is contained in:
@@ -71,7 +71,7 @@ public class DustParticle implements ParticleElement {
|
||||
} else {
|
||||
dustOptions = randomParticleDust();
|
||||
}
|
||||
display(location, particleTickData.getPlayer(), particleTickData.isOnlySelf(), particleTickData.isOnlyOthers(), player -> {
|
||||
display(particleTickData, player -> {
|
||||
player.spawnParticle(particle, location, count, vx, vy, vz, speed, dustOptions);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user