mirror of
https://github.com/minetest-mods/i3.git
synced 2025-02-05 06:50:24 +01:00
Prevent potential crash
This commit is contained in:
parent
ad08ca56b8
commit
c64f28a90b
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user