Skip to content

Commit

Permalink
fixed a bug in the calc of the topline.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Mar 16, 2024
1 parent ae28770 commit 8ccb518
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion init.lua
Expand Up @@ -87,7 +87,11 @@ local function RenderShaded(type, currentData, otherData, multiplier)
local otherY = {}

for idx, v in ipairs(currentData.expEvents.DataY) do
otherY[idx] = otherData.expEvents[idx] or 0
if otherData.expEvents[idx] then
otherY[idx] = otherData[idx] < currentData[idx] and otherData[idx] or 0
else
otherY[idx] = 0
end
end

if settings.ExpPlotFillLines then
Expand Down

0 comments on commit 8ccb518

Please sign in to comment.