1
0
Fork 0

Fix old burning storage crash and log any relevent info.

This commit is contained in:
ancientmarinerdev 2023-03-09 13:52:39 +00:00 committed by Gitea
parent 994f720385
commit 547973877a
1 changed files with 5 additions and 0 deletions

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