Skip to content

Commit

Permalink
One-line solution to compatibility
Browse files Browse the repository at this point in the history
Co-authored-by: cx384 <[email protected]>
  • Loading branch information
Emojigit and cx384 authored Jul 10, 2024
1 parent 767d0e1 commit 000015c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ minetest.register_globalstep(function(dtime)
hud = {}
areas.hud[name] = hud
hud.areasId = player:hud_add({
hud_elem_type = "text", -- ignored on new clients
type = "text",
[minetest.features.hud_def_type_field and "type" or "hud_elem_type"] = "text", -- compatible with older version
name = "Areas",
number = 0xFFFFFF,
position = {x=0, y=1},
Expand Down

0 comments on commit 000015c

Please sign in to comment.