This commit is contained in:
ShadowNinja 2013-11-08 14:45:17 -05:00
parent 5b4cbe122f
commit ad3aaad8a8

View File

@ -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.')