aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/mining
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-02 20:21:50 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-02 20:21:50 +0100
commitaf3e264dbeba9ab4b9ba4bae1334fa31232f7d78 (patch)
tree962efd1b0d2475491a36370dbe36ebbaab25c80e /src/main/java/at/hannibal2/skyhanni/features/mining
parent76a1c7eb680cb31b050fb848a6a070d33df037c3 (diff)
downloadskyhanni-af3e264dbeba9ab4b9ba4bae1334fa31232f7d78.tar.gz
skyhanni-af3e264dbeba9ab4b9ba4bae1334fa31232f7d78.tar.bz2
skyhanni-af3e264dbeba9ab4b9ba4bae1334fa31232f7d78.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/mining')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
index 1404e685f..33d5b174c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
@@ -65,23 +65,14 @@ class KingTalismanHelper {
}
private fun checkOffset() {
- val currentKing = getCurrentKing()
-
- val king =
- EntityUtils.getEntitiesNearby<EntityArmorStand>(LorenzVec(129.6, 196.0, 196.7), 2.0)
- .filter { it.name.startsWith("§6§lKing ") }.first()
+ val king = EntityUtils.getEntitiesNearby<EntityArmorStand>(LorenzVec(129.6, 196.0, 196.7), 2.0)
+ .filter { it.name.startsWith("§6§lKing ") }.first()
val foundKing = "§6§lKing (?<name>.*)".toPattern().matchMatcher(king.name) {
group("name")
} ?: return
- println(" ")
-
- val currentId = kingCircles.indexOf(currentKing)
- println("currentKing: $currentKing $currentId")
-
+ val currentId = kingCircles.indexOf(getCurrentKing())
val foundId = kingCircles.indexOf(foundKing)
- println("currentKing: $foundKing $foundId")
-
currentOffset = currentId - foundId
}