aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-03 03:26:18 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-03 03:26:18 +0100
commit1f9c097cb6e24bba4496b029b156052410df2629 (patch)
tree08a7005125c95993032d011f7c1b4a106182da2e /src/main/java/at/hannibal2
parentd4ee6c0e61a2543a654ade7be19b0effe95fb8d1 (diff)
downloadskyhanni-1f9c097cb6e24bba4496b029b156052410df2629.tar.gz
skyhanni-1f9c097cb6e24bba4496b029b156052410df2629.tar.bz2
skyhanni-1f9c097cb6e24bba4496b029b156052410df2629.zip
rename method
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorTracker.kt8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
index 8b3460c25..520f1283c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
@@ -74,7 +74,7 @@ object TrevorFeatures {
try {
if (config.trapperSolver && onFarmingIsland()) {
updateTrapper()
- TrevorTracker.saveAndUpdate()
+ TrevorTracker.update()
TrevorTracker.calculatePeltsPerHour()
if (questActive) TrevorSolver.findMob()
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorTracker.kt
index c596b2eab..175d21903 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorTracker.kt
@@ -80,14 +80,14 @@ object TrevorTracker {
val pelts = matcher.group("pelts").toInt()
storage.peltsGained += pelts
storage.selfKillingAnimals += 1
- saveAndUpdate()
+ update()
}
matcher = killMobPattern.matcher(event.message)
if (matcher.matches()) {
val pelts = matcher.group("pelts").toInt()
storage.peltsGained += pelts
storage.killedAnimals += 1
- saveAndUpdate()
+ update()
}
}
@@ -98,10 +98,10 @@ object TrevorTracker {
val foundRarity = TrapperMobRarity.entries.firstOrNull { it.formattedName == rarity } ?: return
val old = storage.animalRarities[foundRarity] ?: 0
storage.animalRarities = storage.animalRarities.editCopy { this[foundRarity] = old + 1 }
- saveAndUpdate()
+ update()
}
- fun saveAndUpdate() {
+ fun update() {
val storage = ProfileStorageData.profileSpecific?.trapperData ?: return
display = formatDisplay(drawTrapperDisplay(storage))
}