From d278ad0b6e01d6381ae670aa2ba37beec478bd42 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Thu, 28 Mar 2024 07:54:26 +1100 Subject: Fix: Showing Dwarven specific events in Crystal Hollows/Mineshaft. (#1289) --- .../skyhanni/features/mining/eventtracker/MiningEventDisplay.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/mining') 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) { -- cgit