loottracker: remove timestamp from LootTrackerRecord
This commit is contained in:
@@ -378,7 +378,7 @@ class LootTrackerPanel extends PluginPanel
|
|||||||
void add(final String eventName, final int actorLevel, LootTrackerItem[] items)
|
void add(final String eventName, final int actorLevel, LootTrackerItem[] items)
|
||||||
{
|
{
|
||||||
final String subTitle = actorLevel > -1 ? "(lvl-" + actorLevel + ")" : "";
|
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);
|
records.add(record);
|
||||||
LootTrackerBox box = buildBox(record);
|
LootTrackerBox box = buildBox(record);
|
||||||
if (box != null)
|
if (box != null)
|
||||||
|
|||||||
@@ -614,7 +614,7 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
buildLootTrackerItem(itemStack.getId(), itemStack.getQty())
|
buildLootTrackerItem(itemStack.getId(), itemStack.getQty())
|
||||||
).toArray(LootTrackerItem[]::new);
|
).toArray(LootTrackerItem[]::new);
|
||||||
|
|
||||||
trackerRecords.add(new LootTrackerRecord(record.getEventId(), "", drops, -1));
|
trackerRecords.add(new LootTrackerRecord(record.getEventId(), "", drops));
|
||||||
}
|
}
|
||||||
|
|
||||||
return trackerRecords;
|
return trackerRecords;
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ class LootTrackerRecord
|
|||||||
private final String title;
|
private final String title;
|
||||||
private final String subTitle;
|
private final String subTitle;
|
||||||
private final LootTrackerItem[] items;
|
private final LootTrackerItem[] items;
|
||||||
private final long timestamp;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if this record matches specified id
|
* Checks if this record matches specified id
|
||||||
|
|||||||
Reference in New Issue
Block a user