mirror of
https://github.com/MinetestForFun/quests.git
synced 2025-01-08 09:10:23 +01:00
fix hud breaked on re-join, issue https://github.com/MinetestForFun/server-minetestforfun/issues/454
Quest uses the old id of the previous connection if exists but it can correspond to another hud -> inventory_bag
This commit is contained in:
parent
fb9aeec0ff
commit
48dd7aa045
6
hud.lua
6
hud.lua
@ -297,9 +297,9 @@ end
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local playername = player:get_player_name()
|
||||
if quests.hud[playername] ~= nil then
|
||||
if not quests.hud[playername].first then
|
||||
return
|
||||
end
|
||||
---if not quests.hud[playername].first then
|
||||
--- return
|
||||
---end
|
||||
local list = quests.hud[playername].list
|
||||
local autohide = quests.hud[playername].autohide
|
||||
local central_message_enabled = quests.hud[playername].central_message_enabled
|
||||
|
Loading…
Reference in New Issue
Block a user