summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-06-14 22:49:06 -0400
committerShadowNinja <shadowninja@minetest.net>2014-06-14 22:49:06 -0400
commitbfb260d181f464bdb78ab7382c3df24ce1db55ba (patch)
treec4dfa6eb78ae7904111dcc11b53b410207d51129
parentabd6a4c7097f4086e662b5faaf0e4d0f5ec112c0 (diff)
Fix a indexing bug with change_owner
-rw-r--r--chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
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
})