aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-08-12 22:56:41 +0200
committerGitHub <noreply@github.com>2024-08-12 22:56:41 +0200
commit54101578e57ce5ca8d74c55469b2fa6c5360a08c (patch)
tree52e8309a5002f6a1d3abd61df6a59f3b821c6e5e /src/main/java/at/hannibal2/skyhanni/config
parent4e0ecc529f3616d9f1041392c79b6d2dbf303753 (diff)
downloadskyhanni-54101578e57ce5ca8d74c55469b2fa6c5360a08c.tar.gz
skyhanni-54101578e57ce5ca8d74c55469b2fa6c5360a08c.tar.bz2
skyhanni-54101578e57ce5ca8d74c55469b2fa6c5360a08c.zip
Fix code preprocessing (#2335)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt
index ce97a326c..3e64d5f5a 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt
@@ -28,6 +28,7 @@ import at.hannibal2.skyhanni.mixins.transformers.gui.AccessorGuiContainer
import at.hannibal2.skyhanni.utils.GuiRenderUtils
import at.hannibal2.skyhanni.utils.KeyboardManager
import at.hannibal2.skyhanni.utils.LorenzUtils.round
+import at.hannibal2.skyhanni.utils.compat.GuiScreenUtils
import at.hannibal2.skyhanni.utils.compat.SkyhanniBaseScreen
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.ScaledResolution
@@ -147,8 +148,8 @@ class GuiPositionEditor(
return hoveredPos
}
- private fun getScaledHeight() = ScaledResolution(Minecraft.getMinecraft()).scaledHeight
- private fun getScaledWidth() = ScaledResolution(Minecraft.getMinecraft()).scaledWidth
+ private fun getScaledHeight() = GuiScreenUtils.scaledWindowHeight
+ private fun getScaledWidth() = GuiScreenUtils.scaledWindowWidth
@Throws(IOException::class)
override fun mouseClicked(originalX: Int, priginalY: Int, mouseButton: Int) {