mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'fix-velocity' into 'master'
Fix velocity while dead on client See merge request veloren/veloren!183 Former-commit-id: f1a5aa879d27a102e176ed25fc6d3d8ad67a0238
This commit is contained in:
commit
276dbd97cf
@ -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