Merge pull request 'Fix old burning storage crash and log any relevent info.' (#3522) from fix_burning_crash into master

Reviewed-on: MineClone2/MineClone2#3522
This commit is contained in:
ancientmarinerdev 2023-03-12 21:12:34 +00:00
commit 639cec4989
1 changed files with 5 additions and 0 deletions

View File

@ -153,6 +153,11 @@ function mcl_burning.extinguish(obj)
end end
function mcl_burning.tick(obj, dtime, storage) 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 if storage.burn_time then
storage.burn_time = storage.burn_time - dtime storage.burn_time = storage.burn_time - dtime