1
0
mirror of https://github.com/Earu/EasyChat.git synced 2025-03-04 03:13:20 -05:00

slight fix

This commit is contained in:
Ryan 2024-03-27 18:58:31 +01:00
parent 58631671a5
commit 4f8e8564f1

View File

@ -392,12 +392,12 @@ local font_part = {
}
function font_part:Ctor(str)
if not surface.GetLuaFonts then
if not surface_GetLuaFonts then
self.Invalid = true
return self
end
local lua_fonts = surface.GetLuaFonts()
local lua_fonts = surface_GetLuaFonts()
local succ = lua_fonts[string_lower(str)] ~= nil
self.Font = succ and str or self.HUD.DefaultFont
if not succ then