forked from mtcontrib/awards
Tente la correction d'un crash
This commit is contained in:
parent
54db6ce0c0
commit
cae2c1ee3b
@ -122,6 +122,9 @@ function awards.unlock(name, award)
|
||||
end
|
||||
else
|
||||
local player = minetest.get_player_by_name(name)
|
||||
if not (player and player.is_player and player:is_player()) then
|
||||
return
|
||||
end
|
||||
local one = player:hud_add({
|
||||
hud_elem_type = "image",
|
||||
name = "award_bg",
|
||||
|
Loading…
Reference in New Issue
Block a user