aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-27 18:29:37 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-27 18:29:37 +0100
commit3fc1cc0267701ccae0af80051e2a11c106aba1d0 (patch)
tree6e0ef134a72197fe3b87fd29cc446105f840a8e3 /src/main/java/at
parent694d5334afbc3bfed8baf6e4f20de9c322f3423e (diff)
downloadskyhanni-3fc1cc0267701ccae0af80051e2a11c106aba1d0.tar.gz
skyhanni-3fc1cc0267701ccae0af80051e2a11c106aba1d0.tar.bz2
skyhanni-3fc1cc0267701ccae0af80051e2a11c106aba1d0.zip
Code cleanup
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt5
1 files changed, 2 insertions, 3 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 d47abd7c1..11d6e68ad 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
@@ -19,6 +19,7 @@ import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.ChatUtils
import at.hannibal2.skyhanni.utils.ConfigUtils
import at.hannibal2.skyhanni.utils.EntityUtils
+import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer
import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
@@ -143,9 +144,7 @@ object TrevorFeatures {
TrevorSolver.findMobHeight(height, false)
}
talbotPatternAt.matchMatcher(formattedMessage) {
- val thePlayer = Minecraft.getMinecraft().thePlayer ?: return
- val height = thePlayer.posY
- TrevorSolver.averageHeight = height
+ TrevorSolver.averageHeight = LocationUtils.playerLocation().y
}
if (formattedMessage == "[NPC] Trevor: You will have 10 minutes to find the mob from when you accept the task.") {