mirror of
https://github.com/minetest-mods/areas.git
synced 2024-11-14 06:30:19 +01:00
support non-numeric IDs
This commit is contained in:
parent
dedd0ebf6e
commit
e4ac30b7ff
2
hud.lua
2
hud.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user