mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-21 12:35:40 +01:00
Fix deprecated hud_elem_type field warning (#78)
Co-authored-by: cx384 <cx384@proton.me>
This commit is contained in:
parent
2deb6770f4
commit
9024be24eb
2
hud.lua
2
hud.lua
@ -66,7 +66,7 @@ minetest.register_globalstep(function(dtime)
|
||||
hud = {}
|
||||
areas.hud[name] = hud
|
||||
hud.areasId = player:hud_add({
|
||||
hud_elem_type = "text",
|
||||
[minetest.features.hud_def_type_field and "type" or "hud_elem_type"] = "text", -- compatible with older versions
|
||||
name = "Areas",
|
||||
number = 0xFFFFFF,
|
||||
position = {x=0, y=1},
|
||||
|
Loading…
Reference in New Issue
Block a user