From f2d08f1b4d12ca6ade72e6e05396ec14732b47f0 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Fri, 9 Sep 2016 13:25:14 -0400 Subject: Manage IDs. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 3fec4d5..91c255a 100644 --- a/init.lua +++ b/init.lua @@ -58,7 +58,7 @@ minetest.register_chatcommand("pvp_areas", { elseif not pvp_areas_players[name].pos2 then minetest.chat_send_player(name, "Position 2 missing, use \"/pvp_areas pos2\" to set.") else - pvp_areas_store:insert_area(pvp_areas_players[name].pos1, pvp_areas_players[name].pos2, "pvp_areas") + pvp_areas_store:insert_area(pvp_areas_players[name].pos1, pvp_areas_players[name].pos2, "pvp_areas", #pvp_areas) table.insert(pvp_areas, pvp_areas_store:get_area(#pvp_areas)) update_pvp_areas() save_pvp_areas() -- cgit v1.2.3