mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Reset on_ceiling state
Previously, the on_ceiling state would remain true for the entire lifetime of the entity after it touched the ceiling once.
This commit is contained in:
parent
a8fb168315
commit
d890a58b93
@ -1317,6 +1317,7 @@ fn box_voxel_collision<'a, T: BaseVol<Vox = Block> + ReadVol>(
|
||||
}
|
||||
|
||||
physics_state.on_ground = false;
|
||||
physics_state.on_ceiling = false;
|
||||
|
||||
let mut on_ground = false;
|
||||
let mut on_ceiling = false;
|
||||
|
Loading…
Reference in New Issue
Block a user