aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-12 13:47:52 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-12 13:47:52 +0200
commit9db47510d371b124aec3ba8ccded1580efe54b5c (patch)
tree2b173fe92a6c156178d46ca76893c51cf5816e76 /src/main/java/at/hannibal2/skyhanni/utils
parent3455d43abdde8311824fc6f6c1f8037f76367a9e (diff)
downloadskyhanni-9db47510d371b124aec3ba8ccded1580efe54b5c.tar.gz
skyhanni-9db47510d371b124aec3ba8ccded1580efe54b5c.tar.bz2
skyhanni-9db47510d371b124aec3ba8ccded1580efe54b5c.zip
Hotkey to open SkyHanni Position Editor no longer works inside signs
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
index 656030c97..054b8509c 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
@@ -363,4 +363,13 @@ object LorenzUtils {
}
return null
}
+
+ fun GuiEditSign.isRancherSign(): Boolean {
+ if (this !is AccessorGuiEditSign) return false
+
+ val tileSign = (this as AccessorGuiEditSign).tileSign
+ return (tileSign.signText[1].unformattedText.removeColor() == "^^^^^^"
+ && tileSign.signText[2].unformattedText.removeColor() == "Set your"
+ && tileSign.signText[3].unformattedText.removeColor() == "speed cap!")
+ }
} \ No newline at end of file