Skip to content

Commit

Permalink
hud_elem_type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Aug 16, 2024
1 parent 3ab6040 commit 97f7cfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local function setup_hud(player)
local data = {}

data.img = player:hud_add({
hud_elem_type = "image",
[minetest.features.hud_def_type_field and "type" or "hud_elem_type"] = "image",
position = hud_position,
text = "mapsync_loaded.png",
offset = {x = 0, y = 0},
Expand All @@ -17,7 +17,7 @@ local function setup_hud(player)
})

data.text = player:hud_add({
hud_elem_type = "text",
[minetest.features.hud_def_type_field and "type" or "hud_elem_type"] = "text",
position = hud_position,
number = 0x00ff00,
text = "",
Expand All @@ -27,7 +27,7 @@ local function setup_hud(player)
})

data.text2 = player:hud_add({
hud_elem_type = "text",
[minetest.features.hud_def_type_field and "type" or "hud_elem_type"] = "text",
position = hud_position,
number = 0x00ff00,
text = "",
Expand Down

0 comments on commit 97f7cfb

Please sign in to comment.