Fix old burning storage crash and log any relevent info.
This commit is contained in:
parent
994f720385
commit
547973877a
|
@ -153,6 +153,11 @@ function mcl_burning.extinguish(obj)
|
|||
end
|
||||
|
||||
function mcl_burning.tick(obj, dtime, storage)
|
||||
if not storage then
|
||||
minetest.log("warning", "No storage for burning tick. Should not happen: " .. dump(obj))
|
||||
return
|
||||
end
|
||||
|
||||
if storage.burn_time then
|
||||
storage.burn_time = storage.burn_time - dtime
|
||||
|
||||
|
|
Loading…
Reference in New Issue