From 3488bdfed117e1d83b252cc16e3cabf27f42c1a3 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Fri, 25 Feb 2022 23:00:17 +0100 Subject: [PATCH] Fix bug after server crash --- basis/submenu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/submenu.lua b/basis/submenu.lua index 4c248dc..1aa0d63 100644 --- a/basis/submenu.lua +++ b/basis/submenu.lua @@ -101,7 +101,7 @@ local function generate_formspec_substring(pos, meta, form_def, player_name) elseif elem.type == "dropdown" then local l = elem.choices:split(",") if nvm.running or techage.is_running(nvm) then - local val = elem.default + local val = elem.default or "" if meta:contains(elem.name) then val = meta:get_string(elem.name) or "" end