Fixed new method to add entity descriptions

This commit is contained in:
Wofsauge committed 2020-11-29 18:47:41 +01:00
1 parent eb3b4182a2
commit e32b32d46e
3 files changed
+11 -12

No files matched your search

+3 -3
View File
@@ -353,9 +353,9 @@ local function onRender(t)
local desc = closest:GetData()["EID_Description"]
local origDesc = EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType)
if type(desc) == "table" then
origDesc.Description = desc.Description
origDesc.Name = desc.Name
origDesc.Transformation = desc.Transformation
origDesc.Description = desc.Description or origDesc.Description
origDesc.Name = desc.Name or origDesc.Name
origDesc.Transformation = desc.Transformation or origDesc.Transformation
else
origDesc.Description = desc
end