diff options
author | James Stevenson <everamzah@gmail.com> | 2016-09-09 13:25:14 -0400 |
---|---|---|
committer | James Stevenson <everamzah@gmail.com> | 2016-09-09 13:25:14 -0400 |
commit | f2d08f1b4d12ca6ade72e6e05396ec14732b47f0 (patch) | |
tree | a502a4d98eebcafc26da74ad427b759d09491d33 /init.lua | |
parent | f46a279600c5fe5a6a23ad5b33a0504d9868fd15 (diff) |
Manage IDs.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |