mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix velocity while dead on client
Former-commit-id: e308e1b8848a38fd9fd776ddd8acb81e145429a6
This commit is contained in:
parent
c67d3287e2
commit
74761b7f9c
@ -216,6 +216,7 @@ impl Server {
|
||||
if let Some(client) = self.clients.get_mut(&entity) {
|
||||
self.state
|
||||
.write_component(entity, comp::phys::Vel(Vec3::zero()));
|
||||
self.state.write_component(entity, comp::phys::ForceUpdate);
|
||||
client.force_state(ClientState::Dead);
|
||||
} else {
|
||||
self.state.ecs_mut().delete_entity_synced(entity);
|
||||
|
Loading…
Reference in New Issue
Block a user