mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
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.
This commit is contained in:
parent
d424d4f10e
commit
c3e0996902
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ minetest.register_on_joinplayer(function(player)
|
||||||
storage = minetest.deserialize(burn_data)
|
storage = minetest.deserialize(burn_data)
|
||||||
end
|
end
|
||||||
mcl_burning.storage[player] = storage
|
mcl_burning.storage[player] = storage
|
||||||
|
if storage.burn_time and storage.burn_time > 0 then
|
||||||
|
mcl_burning.update_hud(player)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function on_leaveplayer(player)
|
local function on_leaveplayer(player)
|
||||||
|
|
Loading…
Reference in a new issue