summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-02-20 19:14:13 +0100
committerGitHub <noreply@github.com>2024-02-20 19:14:13 +0100
commit788fa74d1743c475576e49eaf8edeeedddf1824f (patch)
treec0567e53326a40a77566581e76c7de2b0c2ef041 /src/main/java/at/hannibal2/skyhanni/features/misc
parent92a4d14deaa7a4bc9cfb5426f9b493ee78a14f56 (diff)
downloadskyhanni-788fa74d1743c475576e49eaf8edeeedddf1824f.tar.gz
skyhanni-788fa74d1743c475576e49eaf8edeeedddf1824f.tar.bz2
skyhanni-788fa74d1743c475576e49eaf8edeeedddf1824f.zip
Deprecate LorenzUtils.sendCommandToServer. #1025
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt5
1 files changed, 3 insertions, 2 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 05d621f61..8f4e7ddef 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
@@ -16,6 +16,7 @@ import at.hannibal2.skyhanni.features.garden.farming.GardenCropSpeed
import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper
import at.hannibal2.skyhanni.test.GriffinUtils.drawWaypointFilled
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.distanceToPlayer
@@ -268,7 +269,7 @@ object TrevorFeatures {
val timeSince = lastChatPromptTime.passedSince()
if (timeSince > 200.milliseconds && timeSince < 5.seconds) {
lastChatPromptTime = SimpleTimeMark.farPast()
- LorenzUtils.sendCommandToServer(lastChatPrompt)
+ ChatUtils.sendCommandToServer(lastChatPrompt)
lastChatPrompt = ""
timeLastWarped = SimpleTimeMark.now()
return
@@ -276,7 +277,7 @@ object TrevorFeatures {
}
if (config.warpToTrapper && timeLastWarped.passedSince() > 3.seconds && teleportBlock.passedSince() > 5.seconds) {
- LorenzUtils.sendCommandToServer("warp trapper")
+ ChatUtils.sendCommandToServer("warp trapper")
timeLastWarped = SimpleTimeMark.now()
}
}