aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-29 07:34:13 +0200
committerGitHub <noreply@github.com>2024-05-29 07:34:13 +0200
commita1801699f7191de07523c8d54359234645c20520 (patch)
treededae362e6d9be3502642f88bd5e626e0cf25b66 /src/main
parent093d18da6ec6f1ab7fb4391b4736164404eb2fae (diff)
downloadskyhanni-a1801699f7191de07523c8d54359234645c20520.tar.gz
skyhanni-a1801699f7191de07523c8d54359234645c20520.tar.bz2
skyhanni-a1801699f7191de07523c8d54359234645c20520.zip
Fix: Warping to Base in GUI (#1911)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
index 3a9f26cf0..7aed4e607 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
@@ -32,18 +32,19 @@ import at.hannibal2.skyhanni.utils.LorenzColor.Companion.toLorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
+import at.hannibal2.skyhanni.utils.RegexUtils.anyMatches
+import at.hannibal2.skyhanni.utils.RegexUtils.matchFirst
+import at.hannibal2.skyhanni.utils.RegexUtils.matches
import at.hannibal2.skyhanni.utils.RenderUtils
import at.hannibal2.skyhanni.utils.RenderUtils.draw3DPathWithWaypoint
import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText
import at.hannibal2.skyhanni.utils.RenderUtils.renderRenderables
import at.hannibal2.skyhanni.utils.SimpleTimeMark
import at.hannibal2.skyhanni.utils.SimpleTimeMark.Companion.fromNow
-import at.hannibal2.skyhanni.utils.RegexUtils.anyMatches
-import at.hannibal2.skyhanni.utils.RegexUtils.matchFirst
-import at.hannibal2.skyhanni.utils.RegexUtils.matches
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import at.hannibal2.skyhanni.utils.renderables.Renderable
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
+import net.minecraft.client.Minecraft
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import java.awt.Color
import kotlin.math.roundToInt
@@ -112,6 +113,7 @@ class TunnelsMaps {
private val commissionInvPattern by RepoPattern.pattern(
"mining.commission.inventory", "Commissions"
)
+
/**
* REGEX-TEST: §7- §b277 Glacite Powder
* REGEX-TEST: §7- §b1,010 Glacite Powder
@@ -414,6 +416,7 @@ class TunnelsMaps {
@SubscribeEvent
fun onKeyPress(event: LorenzKeyPressEvent) {
if (!isEnabled()) return
+ if (Minecraft.getMinecraft().currentScreen != null) return
campfireKey(event)
nextSpotKey(event)
}