Prevent double Void text on tab previews

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-27 01:11:24 -05:00
1 parent 31b4767c87
commit cdabf4de66
1 file changed
+2
+2
View File
@@ -328,6 +328,8 @@ function EID:getDescriptionObj(Type, Variant, SubType, entity)
if type(result) == "table" then
for _,callback in ipairs(result) do
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
elseif result then
description = modifier.callback(description)