Prevent double Void text on tab previews
This commit is contained in:
1 parent
31b4767c87
commit
cdabf4de66
1 file changed
+2
@@ -328,6 +328,8 @@ function EID:getDescriptionObj(Type, Variant, SubType, entity)
|
|||||||
if type(result) == "table" then
|
if type(result) == "table" then
|
||||||
for _,callback in ipairs(result) do
|
for _,callback in ipairs(result) do
|
||||||
description = callback(description)
|
description = callback(description)
|
||||||
|
-- If the modifier loads a different description obj (which also goes through the modifier checks), we should stop our checks so text doesn't get printed twice
|
||||||
|
if description.ObjSubType ~= SubType then break end
|
||||||
end
|
end
|
||||||
elseif result then
|
elseif result then
|
||||||
description = modifier.callback(description)
|
description = modifier.callback(description)
|
||||||
|
|||||||
Reference in new issue
Block a user