Fixed bulletpoint icons interfeering with inline icons of the same type

This commit is contained in:
Wofsauge committed 2021-10-16 19:15:58 +02:00
1 parent 64b1819342
commit 1c6d62f024
1 file changed
+1 -1
+1 -1
View File
@@ -359,7 +359,7 @@ function EID:printBulletPoints(description, renderPos)
if i == 1 then
local bpIcon = EID:handleBulletpointIcon(lineToPrint)
if EID:getIcon(bpIcon) ~= EID.InlineIcons["ERROR"] then
lineToPrint = string.gsub(lineToPrint, bpIcon .. " ", "")
lineToPrint = string.gsub(lineToPrint, bpIcon .. " ", "", 1)
textColor = EID:renderString(bpIcon, renderPos + Vector(-3 * EID.Config["Scale"], 0), textScale , textColor)
else
textColor = EID:renderString(bpIcon, renderPos, textScale , textColor)