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:
Ygor Souza 2021-05-14 21:44:14 +02:00
parent a8fb168315
commit d890a58b93

View File

@ -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;