Fixed custom entity descriptions

This commit is contained in:
Wofsauge committed 2020-10-25 19:51:10 +01:00
1 parent 996ae3cc9c
commit 20cdc63c29
2 files changed
+14 -11

No files matched your search

+5 -2
View File
@@ -323,8 +323,11 @@ local function onRender(t)
end
]]--
--Handle Entities (omni)
if EIDConfig["EnableEntityDescriptions"] then
printDescription(EID:getDescriptionObj("custom", closest.Type .. "." .. closest.Variant .. "." .. closest.SubType))
local objIDString = closest.Type .. "." .. closest.Variant .. "." .. closest.SubType
local tableEntry = EID.descriptions[EIDConfig["Language"]]["custom"][objIDString]
or EID.descriptions["en_us"]["custom"][objIDString] or EID:getLegacyModDescription("custom", objIDString) or nil
if EIDConfig["EnableEntityDescriptions"] and tableEntry~=nil then
printDescription(EID:getDescriptionObj("custom", objIDString))
return
end