diff options
author | srifqi <muhammadrifqipriyosusanto@gmail.com> | 2019-01-10 18:56:48 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2019-01-19 18:37:19 +0000 |
commit | 9512c2986e2d5b8388860a51cce2a75f37e67bf6 (patch) | |
tree | bc1bc647f2cbbe35ee5f7425180bac912e5a0572 /builtin/mainmenu/dlg_settings_advanced.lua | |
parent | 80b90159390b55dfc698a31da6a8e1fb59d51eee (diff) | |
download | minetest-9512c2986e2d5b8388860a51cce2a75f37e67bf6.tar.gz minetest-9512c2986e2d5b8388860a51cce2a75f37e67bf6.tar.bz2 minetest-9512c2986e2d5b8388860a51cce2a75f37e67bf6.zip |
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.
Diffstat (limited to 'builtin/mainmenu/dlg_settings_advanced.lua')
-rw-r--r-- | builtin/mainmenu/dlg_settings_advanced.lua | 6 |
1 files 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 |