forked from mtcontrib/minetest_mana
Fix undeclared global variable bug
This commit is contained in:
parent
ebd77f6c36
commit
f2e6e6e8ad
2
init.lua
2
init.lua
@ -288,7 +288,7 @@ else
|
|||||||
|
|
||||||
function mana.hud_add(playername)
|
function mana.hud_add(playername)
|
||||||
local player = minetest.get_player_by_name(playername)
|
local player = minetest.get_player_by_name(playername)
|
||||||
id = player:hud_add({
|
local id = player:hud_add({
|
||||||
hud_elem_type = "text",
|
hud_elem_type = "text",
|
||||||
position = { x = 0.5, y=1 },
|
position = { x = 0.5, y=1 },
|
||||||
text = mana.manastring(playername),
|
text = mana.manastring(playername),
|
||||||
|
Loading…
Reference in New Issue
Block a user