From 67507c75918f8a60ad218cdcb69cc8d39e4a55ed Mon Sep 17 00:00:00 2001 From: paly2 Date: Sun, 19 Jun 2016 19:12:16 +0200 Subject: Fix move_area not updating AreaStore --- chatcommands.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chatcommands.lua') diff --git a/chatcommands.lua b/chatcommands.lua index d37634a..6079e93 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -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) -- cgit v1.2.3