mirror of
https://github.com/APercy/airutils
synced 2025-11-10 16:58:01 +01:00
fixed landing detection
This commit is contained in:
parent
39e8fcf71d
commit
a309227510
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user