Prevent potential crash

This commit is contained in:
Jean-Patrick Guerrero 2023-04-01 22:51:21 +02:00
parent ad08ca56b8
commit c64f28a90b

View File

@ -320,6 +320,7 @@ function i3.hud_notif(name, msg, img)
end end
local player = get_player_by_name(name) local player = get_player_by_name(name)
if not player then return end
local max_y = -120 local max_y = -120
local def = { local def = {