Fix saving settings across restarts
This commit is contained in:
parent
586e592552
commit
6c3a0d1859
@ -74,6 +74,7 @@ minetest.register_chatcommand(modname, {
|
||||
config[p[1]] = tonumber(p[2])
|
||||
end
|
||||
end
|
||||
modstore:set_string("config", minetest.serialize(config))
|
||||
local t = {}
|
||||
for k, v in pairs(defaults) do
|
||||
t[#t + 1] = k .. (config[k] and "=" or "~") .. (config[k] or v)
|
||||
|
Loading…
x
Reference in New Issue
Block a user