diff --git a/mobf/mov_gen_none.lua b/mobf/mov_gen_none.lua index 9d1bdb9..57da01c 100644 --- a/mobf/mov_gen_none.lua +++ b/mobf/mov_gen_none.lua @@ -54,8 +54,12 @@ function mgen_none.callback(entity,now) entity.data.movement.canfly) entity.object:setacceleration({x=0,y=default_y_acceleration,z=0}) - entity.object:setvelocity({x=0,y=speed.y,z=0}) + if default_y_acceleration ~= 0 then + entity.object:setvelocity({x=0,y=speed.y,z=0}) + else + entity.object:setvelocity({x=0,y=0,z=0}) + end end