RekkasGit / E3Next

10 stars 19 forks source link

Update e3util.cs to prevent dictionary crash on bufftoinfodict #213

Closed Lyricalpanda closed 5 months ago

Lyricalpanda commented 5 months ago

Use guarding for c# dictionary

convo: https://discord.com/channels/548643730714918913/1024676514119290901/1197091919021490287

I'm not exactly sure what the true fix is here, but this can at least prevent crashing if we're being given buff lists with duplicate keys. It's essentially just a dumb reduce that'll condense duplicates and use the Max of durations as the value.