Fix move_area not updating AreaStore

This commit is contained in:
paly2
2016-06-19 19:12:16 +02:00
committed by ShadowNinja
parent 10338cd5d1
commit 67507c7591
2 changed files with 17 additions and 2 deletions

View File

@ -306,13 +306,14 @@ minetest.register_chatcommand("move_area", {
return false, "You need to select an area first."
end
area.pos1 = pos1
area.pos2 = pos2
areas:move(id, area, pos1, pos2)
areas:save()
return true, "Area successfully moved."
end,
})
minetest.register_chatcommand("area_info", {
description = "Get information about area configuration and usage.",
func = function(name, param)