forked from minetest-mods/unified_inventory
Item names: fix HUD deprecation warning
This commit is contained in:
parent
235fa841dd
commit
16265dca2d
@ -18,7 +18,8 @@ local function set_hud(player)
|
||||
|
||||
item_names[player_name] = {
|
||||
hud = player:hud_add({
|
||||
hud_elem_type = "text",
|
||||
-- TODO: remove compatibility code when 5.8.0 is no longer used
|
||||
[minetest.features.hud_def_type_field and "type" or "hud_elem_type"] = "text",
|
||||
position = {x=0.5, y=1},
|
||||
offset = off,
|
||||
alignment = {x=0, y=-1},
|
||||
|
Loading…
Reference in New Issue
Block a user