From 8df2aebd319d53abcb80f5239700ab98363f4eeb Mon Sep 17 00:00:00 2001 From: kay27 Date: Mon, 21 Sep 2020 11:30:29 +0400 Subject: [PATCH] Add moveresult variable passing to on_step() of mob entity, https://git.minetest.land/Wuzzy/MineClone2/issues/837 --- mods/ENVIRONMENT/mcl_void_damage/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENVIRONMENT/mcl_void_damage/init.lua b/mods/ENVIRONMENT/mcl_void_damage/init.lua index f48244147..bdd60508f 100644 --- a/mods/ENVIRONMENT/mcl_void_damage/init.lua +++ b/mods/ENVIRONMENT/mcl_void_damage/init.lua @@ -13,8 +13,8 @@ minetest.register_on_mods_loaded(function() if not on_step_old then on_step_old = function() end end - local on_step = function(self, dtime) - on_step_old(self, dtime) + local on_step = function(self, dtime, moveresult) + on_step_old(self, dtime, moveresult) local obj = self.object local pos = obj:get_pos() -- Old on_step function might have deleted object,