diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-03-28 07:54:26 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 21:54:26 +0100 |
commit | d278ad0b6e01d6381ae670aa2ba37beec478bd42 (patch) | |
tree | 2b66fb1a77d7dc7847a84b68aa89912e9bcef3bb /src/main/java/at/hannibal2/skyhanni/features/mining | |
parent | 07eca4f6a1637eb261450481a2ecdf455ea43f07 (diff) | |
download | skyhanni-d278ad0b6e01d6381ae670aa2ba37beec478bd42.tar.gz skyhanni-d278ad0b6e01d6381ae670aa2ba37beec478bd42.tar.bz2 skyhanni-d278ad0b6e01d6381ae670aa2ba37beec478bd42.zip |
Fix: Showing Dwarven specific events in Crystal Hollows/Mineshaft. (#1289)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/mining')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventDisplay.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventDisplay.kt index 4e1fbcef5..dcb244009 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventDisplay.kt @@ -70,7 +70,8 @@ object MiningEventDisplay { fun updateData(eventData: MiningEventData) { eventData.runningEvents.forEach { (islandType, events) -> - val sorted = events.sortedBy { it.endsAt - it.event.defaultLength.inWholeMilliseconds } + val sorted = events.filter { islandType == IslandType.DWARVEN_MINES || !it.event.dwarvenSpecific } + .sortedBy { it.endsAt - it.event.defaultLength.inWholeMilliseconds } val oldData = islandEventData[islandType] if (oldData == null) { |