add self.disable_falling switch for custom routines

This commit is contained in:
TenPlus1 2018-11-29 12:14:54 +00:00
parent 51ab54bcfa
commit 43026c374e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -245,7 +245,7 @@ eating.
If false is returned, the mob will not replace the node.
By default, replacing sets self.gotten to true and resets the object
properties.
properties. (DEPRECATED, use on_replace to make changes).
Custom Definition Functions