Fix bug after server crash

This commit is contained in:
Joachim Stolberg 2022-02-25 23:00:17 +01:00
parent 622a26d575
commit 3488bdfed1

View File

@ -101,7 +101,7 @@ local function generate_formspec_substring(pos, meta, form_def, player_name)
elseif elem.type == "dropdown" then elseif elem.type == "dropdown" then
local l = elem.choices:split(",") local l = elem.choices:split(",")
if nvm.running or techage.is_running(nvm) then if nvm.running or techage.is_running(nvm) then
local val = elem.default local val = elem.default or ""
if meta:contains(elem.name) then if meta:contains(elem.name) then
val = meta:get_string(elem.name) or "" val = meta:get_string(elem.name) or ""
end end