aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-23 13:47:01 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-23 13:47:01 +0200
commit0b67884057c3dd6d4fcfcec7ff6cc0730822ffa9 (patch)
treeddf29c79d40703d1e60bf5af0d73788beb4f3cdd /src/main/java
parenta40b447b792d5e09b2afab754a87cc50d5e2ee47 (diff)
downloadskyhanni-0b67884057c3dd6d4fcfcec7ff6cc0730822ffa9.tar.gz
skyhanni-0b67884057c3dd6d4fcfcec7ff6cc0730822ffa9.tar.bz2
skyhanni-0b67884057c3dd6d4fcfcec7ff6cc0730822ffa9.zip
support minion pickup
fixed damage indicator sorting previous damages
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageCounter.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageCounter.kt
index 84bc7d50a..711523175 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageCounter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageCounter.kt
@@ -1,10 +1,12 @@
package at.hannibal2.skyhanni.features.damageindicator
+import java.util.*
+
class DamageCounter {
var currentDamage = 0L
var currentHealing = 0L
- var oldDamages = mutableListOf<OldDamage>()
+ var oldDamages = LinkedList<OldDamage>()
var firstTick = 0L
} \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt
index 072661329..78e8ca648 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt
@@ -167,7 +167,7 @@ class DamageIndicatorManager {
}
if (now > damageCounter.firstTick + 1_000) {
- damageCounter.oldDamages.add(OldDamage(now, damageCounter.currentDamage, damageCounter.currentHealing))
+ damageCounter.oldDamages.add(0, OldDamage(now, damageCounter.currentDamage, damageCounter.currentHealing))
damageCounter.firstTick = 0L
damageCounter.currentDamage = 0
damageCounter.currentHealing = 0