From cff49c015ae605a531c1014f8c6dc27bc7b3036b Mon Sep 17 00:00:00 2001 From: kabou Date: Wed, 2 Mar 2022 17:15:05 +0100 Subject: [PATCH] Fix fire HUD not showing on join while burning. * Add the fire HUD to a player who joins the server while still burning from the previous session. --- mods/ENTITIES/mcl_burning/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ENTITIES/mcl_burning/init.lua b/mods/ENTITIES/mcl_burning/init.lua index 3496d7af9..62bf3f69a 100644 --- a/mods/ENTITIES/mcl_burning/init.lua +++ b/mods/ENTITIES/mcl_burning/init.lua @@ -60,6 +60,9 @@ minetest.register_on_joinplayer(function(player) storage = minetest.deserialize(burn_data) end mcl_burning.storage[player] = storage + if storage.burn_time and storage.burn_time > 0 then + mcl_burning.update_hud(player) + end end) local function on_leaveplayer(player)