mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-16 23:30:25 +02:00
add self.disable_falling switch for custom routines
This commit is contained in:
2
api.lua
2
api.lua
@ -2323,7 +2323,7 @@ end
|
||||
-- falling and fall damage
|
||||
local falling = function(self, pos)
|
||||
|
||||
if self.fly then
|
||||
if self.fly or self.disable_falling then
|
||||
return
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user