From bfb260d181f464bdb78ab7382c3df24ce1db55ba Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sat, 14 Jun 2014 22:49:06 -0400 Subject: [PATCH] Fix a indexing bug with change_owner --- chatcommands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatcommands.lua b/chatcommands.lua index 3a05a0a..31e68c6 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -258,7 +258,7 @@ minetest.register_chatcommand("change_owner", { areas:save() minetest.chat_send_player(newOwner, ("%s has given you control over the area %q (ID %d).") - :format(name, areas[id].name, id)) + :format(name, areas.areas[id].name, id)) return true, "Owner changed." end })