diff --git a/feather/server/src/client.rs b/feather/server/src/client.rs index f18af09a1..c05f01609 100644 --- a/feather/server/src/client.rs +++ b/feather/server/src/client.rs @@ -557,7 +557,7 @@ impl Client { offset_x: particle.offset_x, offset_y: particle.offset_y, offset_z: particle.offset_z, - particle_data: 0.0, + particle_data: particle.data, particle_count: particle.count, }) } diff --git a/libcraft/particles/src/particle.rs b/libcraft/particles/src/particle.rs index 4e514fd4f..d8040612a 100644 --- a/libcraft/particles/src/particle.rs +++ b/libcraft/particles/src/particle.rs @@ -11,6 +11,7 @@ pub struct Particle { pub offset_y: f32, pub offset_z: f32, pub count: i32, + pub data: f32, } /// This is an enum over the kinds of particles diff --git a/quill/api/src/game.rs b/quill/api/src/game.rs index 7fd5657c8..8240cc35e 100644 --- a/quill/api/src/game.rs +++ b/quill/api/src/game.rs @@ -129,6 +129,7 @@ impl Game { /// offset_y: 0.0, /// offset_z: 0.0, /// count: 1, + /// data: 0.0, /// }; /// /// game.spawn_particle(position, particle); diff --git a/quill/example-plugins/particle-example/src/lib.rs b/quill/example-plugins/particle-example/src/lib.rs index bd84bb58d..2e90441d8 100644 --- a/quill/example-plugins/particle-example/src/lib.rs +++ b/quill/example-plugins/particle-example/src/lib.rs @@ -28,6 +28,7 @@ fn particle_system(_plugin: &mut ParticleExample, game: &mut Game) { offset_y: 0.0, offset_z: 0.0, count: 1, + data: 0.0, }; game.spawn_particle(position, particle); @@ -45,6 +46,7 @@ fn particle_system(_plugin: &mut ParticleExample, game: &mut Game) { offset_y: 0.0, offset_z: 0.0, count: 1, + data: 0.0, }; // Initialise an empty ecs-entity builder