mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user