loottracker: remove timestamp from LootTrackerRecord

This commit is contained in:
dekvall
2019-08-06 19:01:18 +02:00
parent 74bb3c6acf
commit ef4c628068
3 changed files with 2 additions and 3 deletions

View File

@@ -378,7 +378,7 @@ class LootTrackerPanel extends PluginPanel
void add(final String eventName, final int actorLevel, LootTrackerItem[] items)
{
final String subTitle = actorLevel > -1 ? "(lvl-" + actorLevel + ")" : "";
final LootTrackerRecord record = new LootTrackerRecord(eventName, subTitle, items, System.currentTimeMillis());
final LootTrackerRecord record = new LootTrackerRecord(eventName, subTitle, items);
records.add(record);
LootTrackerBox box = buildBox(record);
if (box != null)

View File

@@ -614,7 +614,7 @@ public class LootTrackerPlugin extends Plugin
buildLootTrackerItem(itemStack.getId(), itemStack.getQty())
).toArray(LootTrackerItem[]::new);
trackerRecords.add(new LootTrackerRecord(record.getEventId(), "", drops, -1));
trackerRecords.add(new LootTrackerRecord(record.getEventId(), "", drops));
}
return trackerRecords;

View File

@@ -32,7 +32,6 @@ class LootTrackerRecord
private final String title;
private final String subTitle;
private final LootTrackerItem[] items;
private final long timestamp;
/**
* Checks if this record matches specified id