mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 04:13:00 +00:00
Add moveresult variable passing to on_step() of mob entity, https://git.minetest.land/Wuzzy/MineClone2/issues/837
This commit is contained in:
parent
15cb94b9b3
commit
8df2aebd31
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue