forked from Mirrorlandia_minetest/minetest
Fix that negative integer values for float settings don't get a ".0" suffix (#13779)
This commit is contained in:
parent
83b85ba16a
commit
1a568cc491
@ -113,7 +113,7 @@ end
|
||||
|
||||
make.float = make_field(tonumber, is_valid_number, function(x)
|
||||
local str = tostring(x)
|
||||
if str:match("^%d+$") then
|
||||
if str:match("^[+-]?%d+$") then
|
||||
str = str .. ".0"
|
||||
end
|
||||
return str
|
||||
|
Loading…
Reference in New Issue
Block a user