Make tableentry from EID:getDescriptionObj() outside if block (#943)

- to fix mod name not showing
This commit is contained in:
리셰 authored and GitHub committed 2026-01-31 16:31:33 +01:00
1 parent 7016f23858
commit 88541122b8
1 file changed
+1 -1
+1 -1
View File
@@ -648,8 +648,8 @@ function EID:getDescriptionObj(Type, Variant, SubType, entity, checkModifiers)
generatedModularDesc = true
end
end
local tableEntry = EID:getDescriptionData(Type, Variant, SubType)
if not generatedModularDesc then
local tableEntry = EID:getDescriptionData(Type, Variant, SubType)
description.Description = tableEntry and tableEntry[3] or EID:getXMLDescription(Type, Variant, SubType)
end