mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
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.
This commit is contained in:
parent
80b9015939
commit
9512c2986e
@ -522,8 +522,10 @@ local function get_current_np_group_as_string(setting)
|
|||||||
value.seed .. ", " ..
|
value.seed .. ", " ..
|
||||||
value.octaves .. ", " ..
|
value.octaves .. ", " ..
|
||||||
value.persistence .. ", " ..
|
value.persistence .. ", " ..
|
||||||
value.lacunarity .. ", " ..
|
value.lacunarity
|
||||||
value.flags
|
if value.flags ~= "" then
|
||||||
|
t = t .. ", " .. value.flags
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return t
|
return t
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user