summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorJames Stevenson <everamzah@gmail.com>2016-09-09 13:25:14 -0400
committerJames Stevenson <everamzah@gmail.com>2016-09-09 13:25:14 -0400
commitf2d08f1b4d12ca6ade72e6e05396ec14732b47f0 (patch)
treea502a4d98eebcafc26da74ad427b759d09491d33 /init.lua
parentf46a279600c5fe5a6a23ad5b33a0504d9868fd15 (diff)
Manage IDs.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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()