Small fix

This commit is contained in:
Federico Cecchetto 2022-01-29 01:24:05 +01:00
parent 10bf954c2b
commit f520775ef3

View File

@ -112,7 +112,8 @@ LUI.MenuBuilder.m_types_build["mods_menu"] = modsmenu
local localize = Engine.Localize local localize = Engine.Localize
Engine.Localize = function(...) Engine.Localize = function(...)
local args = {...} local args = {...}
if (args[1]:sub(1, 2) == "$_") then
if (type(args[1]) == "string" and args[1]:sub(1, 2) == "$_") then
return args[1]:sub(3, -1) return args[1]:sub(3, -1)
end end