1
0
Fork 0

Log pos info only prior to crash

This commit is contained in:
ancientmarinerdev 2023-03-13 01:51:09 +00:00 committed by Gitea
parent ae7cfdff69
commit 97091de67f
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)