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

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3522
This commit is contained in:
ancientmarinerdev 2023-03-12 21:12:34 +00:00
commit 639cec4989

View file

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