support non-numeric IDs

This commit is contained in:
Tai @ Flex 2016-11-26 12:15:59 +00:00
parent dedd0ebf6e
commit e4ac30b7ff

View File

@ -8,7 +8,7 @@ minetest.register_globalstep(function(dtime)
local pos = vector.round(player:getpos())
local areaStrings = {}
for id, area in pairs(areas:getAreasAtPos(pos)) do
table.insert(areaStrings, ("%s [%u] (%s%s)")
table.insert(areaStrings, ("%s [%s] (%s%s)")
:format(area.name, id, area.owner,
area.open and ":open" or ""))
end