Skip to content

Commit

Permalink
Fix deprecated hud_elem_type field warning (#78)
Browse files Browse the repository at this point in the history
Co-authored-by: cx384 <cx384@proton.me>
  • Loading branch information
Emojigit and cx384 authored Jul 17, 2024
1 parent 2deb677 commit 9024be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 9024be2

Please sign in to comment.