diff --git a/common/src/msg/ecs_packet.rs b/common/src/msg/ecs_packet.rs index 2b129023a3..4570e54ee6 100644 --- a/common/src/msg/ecs_packet.rs +++ b/common/src/msg/ecs_packet.rs @@ -30,6 +30,7 @@ sphynx::sum_type! { MountState(comp::MountState), Mounting(comp::Mounting), Mass(comp::Mass), + Projectile(comp::Projectile), } } // Automatically derive From for EcsCompPhantom @@ -50,6 +51,7 @@ sphynx::sum_type! { MountState(PhantomData), Mounting(PhantomData), Mass(PhantomData), + Projectile(PhantomData), } } impl sphynx::CompPacket for EcsCompPacket { diff --git a/common/src/state.rs b/common/src/state.rs index a3eb4101ba..018ba9b9d1 100644 --- a/common/src/state.rs +++ b/common/src/state.rs @@ -132,6 +132,7 @@ impl State { ecs.register_synced::(); ecs.register_synced::(); ecs.register_synced::(); + ecs.register_synced::(); // Register components send from clients -> server ecs.register::(); @@ -157,7 +158,6 @@ impl State { ecs.register::(); ecs.register::(); ecs.register::(); - ecs.register::(); // Register synced resources used by the ECS. ecs.insert_synced(TimeOfDay(0.0));