Fix another bug of the move_area chatcommand

This commit is contained in:
paly2 2016-06-19 19:12:16 +02:00
parent 93942db2c1
commit 1c4a5a4834
1 changed files with 4 additions and 0 deletions

View File

@ -307,6 +307,10 @@ minetest.register_chatcommand("move_area", {
areas.areas[id].pos1 = pos1
areas.areas[id].pos2 = pos2
areas.store:remove_area(areas.store_ids[id])
areas.store:insert_area(pos1, pos2, tostring(id))
areas:save()
return true, "Area successfully moved."
end,