Item names: fix HUD deprecation warning

This commit is contained in:
SmallJoker 2024-07-18 20:45:24 +02:00
parent 235fa841dd
commit 16265dca2d

@ -18,7 +18,8 @@ local function set_hud(player)
item_names[player_name] = { item_names[player_name] = {
hud = player:hud_add({ 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}, position = {x=0.5, y=1},
offset = off, offset = off,
alignment = {x=0, y=-1}, alignment = {x=0, y=-1},