From 43026c374ea437fc1fae2dae7c8bb2b268b1f0ad Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 29 Nov 2018 12:14:54 +0000 Subject: [PATCH] add self.disable_falling switch for custom routines --- api.lua | 2 +- api.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 6da7037..cf82090 100644 --- a/api.lua +++ b/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 diff --git a/api.txt b/api.txt index 72f023c..cf8e89b 100644 --- a/api.txt +++ b/api.txt @@ -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