Fix crash: add missing param
parent
1389805f6e
commit
0357905ee6
2
init.lua
2
init.lua
|
@ -270,7 +270,7 @@ end
|
||||||
-- @param timer - time in seconds it displays
|
-- @param timer - time in seconds it displays
|
||||||
-- @return nothing
|
-- @return nothing
|
||||||
function eggwars.add_tmp_image(name, image_string, timer)
|
function eggwars.add_tmp_image(name, image_string, timer)
|
||||||
local player = minetest.get_player_by_name()
|
local player = minetest.get_player_by_name(name)
|
||||||
tmp_hud[name] = player:hud_add({
|
tmp_hud[name] = player:hud_add({
|
||||||
hud_elem_type = 'image',
|
hud_elem_type = 'image',
|
||||||
position = {x = 0.5, y = 0.5},
|
position = {x = 0.5, y = 0.5},
|
||||||
|
|
Loading…
Reference in New Issue