diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-01 09:50:35 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-01 09:50:35 +0100 |
commit | 1143aad38c39e8dbc509132d884a81360eb7bd58 (patch) | |
tree | 077bf647555cc90a8eb1fbebb8de20b9f05ea9d1 /src/main/java/at/hannibal2 | |
parent | 157d61a509e994e88ce59f2b14fed55948482458 (diff) | |
download | skyhanni-1143aad38c39e8dbc509132d884a81360eb7bd58.tar.gz skyhanni-1143aad38c39e8dbc509132d884a81360eb7bd58.tar.bz2 skyhanni-1143aad38c39e8dbc509132d884a81360eb7bd58.zip |
Show key to press below burrow warp.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt index accd12edf..df89ccd7f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.events.SoopyGuessBurrowEvent import at.hannibal2.skyhanni.utils.BlockUtils.getBlockAt +import at.hannibal2.skyhanni.utils.KeyboardManager import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer import at.hannibal2.skyhanni.utils.LorenzColor @@ -25,6 +26,7 @@ import at.hannibal2.skyhanni.utils.TimeUtils import net.minecraft.client.Minecraft import net.minecraft.init.Blocks import net.minecraftforge.fml.common.eventhandler.SubscribeEvent +import org.lwjgl.input.Keyboard import kotlin.time.Duration.Companion.seconds object GriffinBurrowHelper { @@ -225,6 +227,10 @@ object GriffinBurrowHelper { event.drawColor(it.add(0.0, 1.0, 0.0), LorenzColor.AQUA) if (it.distanceToPlayer() < 10) { event.drawString(it.add(0.5, 1.5, 0.5), "§bWarp to " + warp.displayName, true) + if (config.keyBindWarp != Keyboard.KEY_NONE) { + val keyname = KeyboardManager.getKeyName(config.keyBindWarp) + event.drawString(it.add(0.5, 1.2, 0.5), "§ePress $keyname", true) + } } return } @@ -268,4 +274,4 @@ object GriffinBurrowHelper { animation } } -}
\ No newline at end of file +} |