From 3fc1cc0267701ccae0af80051e2a11c106aba1d0 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 27 Feb 2024 18:29:37 +0100 Subject: Code cleanup --- .../at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java') 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.") { -- cgit