summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
})