Skip to content

Commit

Permalink
Fix code preprocessing (#2335)
Browse files Browse the repository at this point in the history
  • Loading branch information
nea89o authored Aug 12, 2024
1 parent 4e0ecc5 commit 5410157
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5410157

Please sign in to comment.