mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-24 17:50:40 +01:00
Fix a indexing bug with change_owner
This commit is contained in:
parent
abd6a4c709
commit
bfb260d181
@ -258,7 +258,7 @@ minetest.register_chatcommand("change_owner", {
|
|||||||
areas:save()
|
areas:save()
|
||||||
minetest.chat_send_player(newOwner,
|
minetest.chat_send_player(newOwner,
|
||||||
("%s has given you control over the area %q (ID %d).")
|
("%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."
|
return true, "Owner changed."
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user