summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2013-11-08 14:45:17 -0500
committerShadowNinja <shadowninja@minetest.net>2013-11-08 14:45:17 -0500
commitad3aaad8a8f9421c1b58ae0d3ed00c3bfd79e5ec (patch)
tree2024a385e3011a3dec5eca33100be6e5db384bb0
parent5b4cbe122feb0159f4c5e851e4b4006cd3c1b750 (diff)
Fix typo
-rw-r--r--chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/chatcommands.lua b/chatcommands.lua
index b1dcfd8..f953dba 100644
--- a/chatcommands.lua
+++ b/chatcommands.lua
@@ -297,7 +297,7 @@ minetest.register_chatcommand("change_owner", {
.." or is not owned by you.")
return
end
- local index = areas:getImdexById(id)
+ local index = areas:getIndexById(id)
areas.areas[index].owner = new_owner
areas:save()
minetest.chat_send_player(name, 'Owner changed.')