loottracker: Don't build the panel 1000 times when downloading loot

This commit is contained in:
Max Weber
2019-01-01 15:08:29 -07:00
parent 553a690d23
commit 17a55221ce

View File

@@ -349,16 +349,8 @@ class LootTrackerPanel extends PluginPanel
*/ */
void addRecords(Collection<LootTrackerRecord> recs) void addRecords(Collection<LootTrackerRecord> recs)
{ {
for (LootTrackerRecord r : recs) records.addAll(recs);
{ rebuild();
records.add(r);
LootTrackerBox box = buildBox(r);
if (box != null)
{
box.rebuild();
}
}
updateOverall();
} }
/** /**