1
0
Fork 0

Add moveresult variable passing to on_step() of mob entity, https://git.minetest.land/Wuzzy/MineClone2/issues/837

objects
kay27 2020-09-21 11:30:29 +04:00
parent 15cb94b9b3
commit 8df2aebd31
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ minetest.register_on_mods_loaded(function()
if not on_step_old then if not on_step_old then
on_step_old = function() end on_step_old = function() end
end end
local on_step = function(self, dtime) local on_step = function(self, dtime, moveresult)
on_step_old(self, dtime) on_step_old(self, dtime, moveresult)
local obj = self.object local obj = self.object
local pos = obj:get_pos() local pos = obj:get_pos()
-- Old on_step function might have deleted object, -- Old on_step function might have deleted object,