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.newmobs-master
parent
03c5f24649
commit
cff49c015a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue