From 06c6d81cb5ce1428fb2b0ef51a31d0760bd5a4c2 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Tue, 31 May 2022 23:07:31 -0400 Subject: [PATCH] Prevent mod items starting with # breaking things --- eid_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index 65c317a7..522c1084 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -500,7 +500,7 @@ function EID:getObjectName(Type, Variant, SubType) if tableName == "collectibles" then if EID.itemConfig:GetCollectible(SubType) == nil then return Type.."."..Variant.."."..SubType end local vanillaName = EID.itemConfig:GetCollectible(SubType).Name - return name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][SubType][2] or vanillaName + return name or (not string.find(vanillaName, "^#") and vanillaName) or (EID.descriptions["en_us"][tableName][SubType] and EID.descriptions["en_us"][tableName][SubType][2]) or vanillaName elseif tableName == "trinkets" then local adjustedSubtype = EID:getAdjustedSubtype(Type, Variant, SubType) local vanillaName = EID.itemConfig:GetTrinket(adjustedSubtype).Name