From 1c4a5a48349e37620990f44d8eea1f92c34e8f15 Mon Sep 17 00:00:00 2001 From: paly2 Date: Sun, 19 Jun 2016 19:12:16 +0200 Subject: [PATCH] Fix another bug of the move_area chatcommand --- chatcommands.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chatcommands.lua b/chatcommands.lua index 7bdc53c..87c52fe 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -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,