This commit is contained in:
Jean-Patrick Guerrero 2021-01-23 01:55:32 +01:00
commit 03e9538886

@ -1984,12 +1984,17 @@ on_receive_fields(function(player, formname, _f)
local sb_rcp, sb_usg = _f.scrbar_rcp, _f.scrbar_usg local sb_rcp, sb_usg = _f.scrbar_rcp, _f.scrbar_usg
if _f.quit then if _f.quit then
-- Neither the vignette nor hud_flags are available when /craft is used
if data.vignette then
player:hud_change(data.vignette, "text", "") player:hud_change(data.vignette, "text", "")
data.vignette = nil data.vignette = nil
end
if data.hud_flags then
data.hud_flags.crosshair = true data.hud_flags.crosshair = true
player:hud_set_flags(data.hud_flags) player:hud_set_flags(data.hud_flags)
data.hud_flags = nil data.hud_flags = nil
end
return false return false