summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-21 00:24:33 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-21 00:24:53 +0200
commit43575ec3781bc617975f853df85294575875cfab (patch)
treed48742b9f8ffc883a79c26789763483293a94f0d /src/main/java/at/hannibal2/skyhanni/features/event
parent5ecf7f0e14f148f5c14952d98969f4033060bb88 (diff)
downloadskyhanni-43575ec3781bc617975f853df85294575875cfab.tar.gz
skyhanni-43575ec3781bc617975f853df85294575875cfab.tar.bz2
skyhanni-43575ec3781bc617975f853df85294575875cfab.zip
Control + click in composter overlay opens bazaar search and copies required amount to clipboard.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
index a75060476..6682ffa81 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
@@ -7,7 +7,6 @@ import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.sorted
import at.hannibal2.skyhanni.utils.LorenzVec
-import net.minecraft.client.Minecraft
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import net.minecraftforge.fml.common.gameevent.InputEvent.KeyInputEvent
import org.lwjgl.input.Keyboard
@@ -29,8 +28,7 @@ class BurrowWarpHelper {
currentWarp?.let {
if (System.currentTimeMillis() > lastWarpTime + 5_000) {
lastWarpTime = System.currentTimeMillis()
- val thePlayer = Minecraft.getMinecraft().thePlayer
- thePlayer.sendChatMessage("/warp " + currentWarp?.name)
+ LorenzUtils.sendCommandToServer("warp " + currentWarp?.name)
lastWarp = currentWarp
}
}