forked from VoxeLibre/VoxeLibre
Log pos info only prior to crash
This commit is contained in:
parent
ae7cfdff69
commit
97091de67f
|
@ -510,6 +510,10 @@ function mob_class:on_step(dtime)
|
|||
else
|
||||
warn_user_error ()
|
||||
local pos = self.object:get_pos()
|
||||
local node = minetest.get_node(pos)
|
||||
if node and node.name == "ignore" then
|
||||
minetest.log("warning", "Pos is ignored: " .. dump(pos))
|
||||
end
|
||||
log_error (dump(retVal), dump(pos), dump(self))
|
||||
end
|
||||
else
|
||||
|
|
|
@ -628,7 +628,7 @@ function mob_class:do_env_damage()
|
|||
-- put below code in this block if we can prove that unloaded maps are causing crash.
|
||||
-- it should warn then error
|
||||
else
|
||||
minetest.log("warning", "Pos is ignored: " .. dump(pos))
|
||||
--minetest.log("warning", "Pos is ignored: " .. dump(pos))
|
||||
end
|
||||
|
||||
local sunlight = minetest.get_natural_light(pos, self.time_of_day)
|
||||
|
|
Loading…
Reference in New Issue