From 7aba985b159e01593b464e84f020e403ae0ed505 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Fri, 7 Mar 2025 17:08:20 +0100 Subject: [PATCH] Fixed BFFS modifier and others not working correctly --- features/eid_api.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/eid_api.lua b/features/eid_api.lua index e9972084..d50caa2b 100644 --- a/features/eid_api.lua +++ b/features/eid_api.lua @@ -772,7 +772,9 @@ function EID:getDescriptionEntry(objTable, objIdentifier, noFallback) if noFallback then description = translatedTable and translatedTable[objIdentifier] else description = (translatedTable and translatedTable[objIdentifier]) or (EID.descriptions["en_us"][objTable] and EID.descriptions["en_us"][objTable][objIdentifier]) end --Try looking for a -1 that would encompass all subtypes of the variant - if not description then + -- Safety check for if the identifier contains "."(dot) 1-2 times and only contains numbers + local strNoDots, numDots = string.gsub(objIdentifier, "%.","") + if not description and tonumber(strNoDots) and (numDots == 1 or numDots == 2) then local subtype for i = string.len(objIdentifier), 1, -1 do if string.sub(objIdentifier, i, i) == "." then