diff --git a/api.lua b/api.lua index 87fec24..7206c1c 100644 --- a/api.lua +++ b/api.lua @@ -7,6 +7,10 @@ if minetest.deserialize(storage:get_string("arenas")) ~= nil then arena_lib.arenas = minetest.deserialize(storage:get_string("arenas")) end +function arena_lib.update_storage() + storage:set_string("arenas", minetest.serialize(arena_lib.arenas)) +end + local function newArena() end local function nextID() end local function in_game_txt(arena) end diff --git a/signs.lua b/signs.lua index 163a85d..7094299 100644 --- a/signs.lua +++ b/signs.lua @@ -110,10 +110,6 @@ function arena_lib.set_sign(sender, arena_name) minetest.chat_send_player(sender, "Click sinistro su un cartello per settare l'arena") end -function arena_lib.update_storage() - storage:set_string("arenas", minetest.serialize(arena_lib.arenas)) -end - function arena_lib.update_sign(pos, arena)