forked from Mirrorlandia_minetest/minetest
Fix falling damage when not flying
This commit is contained in:
parent
e9006f904c
commit
f4ed37ec6f
@ -303,7 +303,7 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
|
||||
*/
|
||||
bool bouncy_jump = false;
|
||||
// Dont report if flying
|
||||
if(collision_info && !g_settings->getBool("free_move"))
|
||||
if(collision_info && !(g_settings->getBool("free_move") && fly_allowed))
|
||||
{
|
||||
for(size_t i=0; i<result.collisions.size(); i++){
|
||||
const CollisionInfo &info = result.collisions[i];
|
||||
|
Loading…
Reference in New Issue
Block a user