Skip to content

Commit

Permalink
Item names: fix HUD deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Jul 18, 2024
1 parent 235fa84 commit 16265dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion item_names.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 16265dc

Please sign in to comment.