From 9512c2986e2d5b8388860a51cce2a75f37e67bf6 Mon Sep 17 00:00:00 2001 From: srifqi Date: Thu, 10 Jan 2019 18:56:48 +0100 Subject: Advanced settings noiseparams: No tailing comma for empty flags Previously, when editing noiseparams and disabling all the noise flags, the noiseparam is displyed in advanced settings with a tailing comma. --- builtin/mainmenu/dlg_settings_advanced.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/builtin/mainmenu/dlg_settings_advanced.lua b/builtin/mainmenu/dlg_settings_advanced.lua index 4a6fcfba7..ea0134580 100644 --- a/builtin/mainmenu/dlg_settings_advanced.lua +++ b/builtin/mainmenu/dlg_settings_advanced.lua @@ -522,8 +522,10 @@ local function get_current_np_group_as_string(setting) value.seed .. ", " .. value.octaves .. ", " .. value.persistence .. ", " .. - value.lacunarity .. ", " .. - value.flags + value.lacunarity + if value.flags ~= "" then + t = t .. ", " .. value.flags + end end return t end -- cgit v1.2.3