mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'midge/pet-jump-fix' into 'master'
Fixes pet jumping bug. See merge request veloren/veloren!206
This commit is contained in:
commit
2946846a67
@ -310,12 +310,6 @@ impl Client {
|
||||
|
||||
// 7) Finish the tick, pass control back to the frontend.
|
||||
|
||||
// Cleanup
|
||||
self.state
|
||||
.ecs_mut()
|
||||
.write_storage::<comp::Jumping>()
|
||||
.remove(self.entity);
|
||||
|
||||
self.tick += 1;
|
||||
Ok(frontend_events)
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ impl<'a> System<'a> for Sys {
|
||||
WriteStorage<'a, AnimationInfo>,
|
||||
WriteStorage<'a, Stats>,
|
||||
ReadStorage<'a, Control>,
|
||||
ReadStorage<'a, Jumping>,
|
||||
WriteStorage<'a, Jumping>,
|
||||
WriteStorage<'a, Respawning>,
|
||||
WriteStorage<'a, Gliding>,
|
||||
WriteStorage<'a, Attacking>,
|
||||
@ -87,6 +87,7 @@ impl<'a> System<'a> for Sys {
|
||||
|
||||
if jumps.get(entity).is_some() {
|
||||
vel.0.z += 16.0;
|
||||
jumps.remove(entity);
|
||||
}
|
||||
|
||||
(false, 0.15)
|
||||
|
Loading…
Reference in New Issue
Block a user