mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
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:
commit
639cec4989
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue