Show sub-areas in /list_areas

This commit is contained in:
ShadowNinja 2013-11-18 17:45:44 -05:00
parent 5f68c111dc
commit 810a706e5f

@ -206,7 +206,7 @@ minetest.register_chatcommand("list_areas", {
"Showing your areas.")
end
for _, area in pairs(areas.areas) do
if admin or area.owner == name then
if admin or areas:isAreaOwner(area.id, name) then
minetest.chat_send_player(name,
areas:toString(area))
end