fixed landing detection

This commit is contained in:
Alexsandro Percy 2023-07-17 10:32:38 -03:00
parent 39e8fcf71d
commit a309227510

View file

@ -241,7 +241,7 @@ function airutils.logic(self)
local node_bellow = airutils.nodeatpos(airutils.pos_shift(curr_pos,{y=-1.3}))
local is_flying = true
if self.colinfo then
is_flying = not self.colinfo.touching_ground
is_flying = (not self.colinfo.touching_ground) and (self.isinliquid == false)
end
--if is_flying then minetest.chat_send_all('is flying') end