mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 20:41:11 +01:00
Log pos info only prior to crash
This commit is contained in:
parent
ae7cfdff69
commit
97091de67f
2 changed files with 5 additions and 1 deletions
|
@ -510,6 +510,10 @@ function mob_class:on_step(dtime)
|
||||||
else
|
else
|
||||||
warn_user_error ()
|
warn_user_error ()
|
||||||
local pos = self.object:get_pos()
|
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))
|
log_error (dump(retVal), dump(pos), dump(self))
|
||||||
end
|
end
|
||||||
else
|
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.
|
-- put below code in this block if we can prove that unloaded maps are causing crash.
|
||||||
-- it should warn then error
|
-- it should warn then error
|
||||||
else
|
else
|
||||||
minetest.log("warning", "Pos is ignored: " .. dump(pos))
|
--minetest.log("warning", "Pos is ignored: " .. dump(pos))
|
||||||
end
|
end
|
||||||
|
|
||||||
local sunlight = minetest.get_natural_light(pos, self.time_of_day)
|
local sunlight = minetest.get_natural_light(pos, self.time_of_day)
|
||||||
|
|
Loading…
Reference in a new issue