From 547973877aba769d3f69372579bbfabdfda4e5f4 Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Thu, 9 Mar 2023 13:52:39 +0000 Subject: [PATCH] Fix old burning storage crash and log any relevent info. --- mods/ENTITIES/mcl_burning/api.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/ENTITIES/mcl_burning/api.lua b/mods/ENTITIES/mcl_burning/api.lua index df0953398..cba73b846 100644 --- a/mods/ENTITIES/mcl_burning/api.lua +++ b/mods/ENTITIES/mcl_burning/api.lua @@ -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