Use init instead of add, less confusing

This commit is contained in:
NullBite 2023-06-23 02:35:46 -04:00
parent 3d21950918
commit 74671b21c5
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -15,7 +15,7 @@ local function add_default_value(key, value)
defaults_table[key]=value defaults_table[key]=value
local stored_value=config:load(key) local stored_value=config:load(key)
sharedstate.add(key, value) sharedstate.init(key, value)
if stored_value ~= nil then if stored_value ~= nil then
sharedstate.set(key, stored_value) sharedstate.set(key, stored_value)