From cdabf4de661ec7c09862bb230f3f3a82f91814de Mon Sep 17 00:00:00 2001 From: Buurazu Date: Thu, 27 Jan 2022 01:11:24 -0500 Subject: [PATCH] Prevent double Void text on tab previews --- eid_api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eid_api.lua b/eid_api.lua index abdb26ea..0a64ad35 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -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)