mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 18:09:33 +01:00
Fix old burning storage crash and log any relevent info.
This commit is contained in:
parent
994f720385
commit
547973877a
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue