diff options
author | inglettronald <inglettronald@gmail.com> | 2023-04-28 17:01:29 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-04-28 17:01:29 -0500 |
commit | e9338ff55209edbe1ea73266a1aa745e96ba6905 (patch) | |
tree | fe9874139850a5a7b1274f1f38d57439d9e2348a | |
parent | f64775d1e49c621141e29e4d2e3d0dfe55e085c7 (diff) | |
download | DulkirMod-e9338ff55209edbe1ea73266a1aa745e96ba6905.tar.gz DulkirMod-e9338ff55209edbe1ea73266a1aa745e96ba6905.tar.bz2 DulkirMod-e9338ff55209edbe1ea73266a1aa745e96ba6905.zip |
var name shortening
-rw-r--r-- | src/main/kotlin/dulkirmod/features/ScalableTooltips.kt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt index 53cb9ea..794bf4a 100644 --- a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt +++ b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt @@ -2,7 +2,6 @@ package dulkirmod.features import dulkirmod.DulkirMod.Companion.mc import dulkirmod.config.DulkirConfig -import net.minecraft.client.Minecraft import net.minecraft.client.gui.FontRenderer import net.minecraft.client.gui.GuiChat import net.minecraft.client.renderer.GlStateManager @@ -37,9 +36,9 @@ object ScalableTooltips { if (mc.currentScreen !is GuiChat) { if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { if (eventDWheel < 0) { - scrollX += Minecraft.getMinecraft().displayWidth / 192 + scrollX += mc.displayWidth / 192 } else if (eventDWheel > 0) { - scrollX -= Minecraft.getMinecraft().displayWidth / 192 + scrollX -= mc.displayWidth / 192 } } else if (Keyboard.isKeyDown(Keyboard.KEY_LCONTROL)) { if (eventDWheel < 0) { @@ -49,9 +48,9 @@ object ScalableTooltips { } } else { if (eventDWheel < 0) { - scrollY -= Minecraft.getMinecraft().displayHeight / 108 + scrollY -= mc.displayHeight / 108 } else if (eventDWheel > 0) { - scrollY += Minecraft.getMinecraft().displayHeight / 108 + scrollY += mc.displayHeight / 108 } } if (Mouse.isButtonDown(2)) { |