diff --git a/databases.lua b/databases.lua index 64f96cb..4846106 100644 --- a/databases.lua +++ b/databases.lua @@ -160,21 +160,21 @@ end minetest.register_on_mods_loaded(function() minetest.log("Checking faction files.") for k, v in factions.factions.iterate() do - --update_data(factions.factions, k, nil, factions.create_faction_table(), true) + update_data(factions.factions, k, nil, factions.create_faction_table(), true) end minetest.log("Checking parcel files.") for k, v in factions.parcels.iterate() do - --update_data(factions.parcels, k, nil, factions.create_parcel_table(), true) + update_data(factions.parcels, k, nil, factions.create_parcel_table(), true) end minetest.log("Checking player files.") for k, v in factions.players.iterate() do - --update_data(factions.players, k, nil, factions.create_player_table(), true) + update_data(factions.players, k, nil, factions.create_player_table(), true) end minetest.log("Checking ip files.") for k, v in factions.player_ips.iterate() do - --update_data(factions.player_ips, k, nil, factions.create_ip_table(), true) + update_data(factions.player_ips, k, nil, factions.create_ip_table(), true) end end) diff --git a/storagedb.lua b/storagedb.lua index d7da0c3..e7e059f 100644 --- a/storagedb.lua +++ b/storagedb.lua @@ -19,9 +19,9 @@ function storagedb.Storagedb(dir) local list = minetest.deserialize(storage:get_string(directory)) if not list then list = {} - list[dir .. "/" .. key] = key + list[key] = key else - list[dir .. "/" .. key] = key + list[key] = key end storage:set_string(directory, minetest.serialize(list)) end @@ -30,7 +30,7 @@ function storagedb.Storagedb(dir) if not list then list = {} else - list[dir .. "/" .. key] = nil + list[key] = nil end storage:set_string(directory, minetest.serialize(list)) end