forked from VoxeLibre/VoxeLibre
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:
commit
639cec4989
|
@ -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 New Issue