mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01: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
|
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,
|
||||||
|
|
Loading…
Reference in a new issue