diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-09 22:12:27 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-09 22:12:27 +0200 |
commit | dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c (patch) | |
tree | b51bffce829a14ed1bdccb581acec2dd1838540e /src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java | |
parent | 9d2b7bec68f98228acf913f029f0383e4dcff3d7 (diff) | |
download | DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.tar.gz DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.tar.bz2 DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.zip |
Diffstat (limited to 'src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java')
-rw-r--r-- | src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java b/src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java index 76dd828..d805170 100644 --- a/src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java +++ b/src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java @@ -19,16 +19,6 @@ public class MouseMixin { return (int) (originalScaledHeight / InventoryScale.INSTANCE.getScale()); } - @ModifyExpressionValue(method = "onCursorPos", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledWidth()I")) - public int onCursorPosWidth(int originalScaledWidth) { - return (int) (originalScaledWidth / InventoryScale.INSTANCE.getScale()); - } - - @ModifyExpressionValue(method = "onCursorPos", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I")) - public int onCursorPosHeight(int originalScaledHeight) { - return (int) (originalScaledHeight / InventoryScale.INSTANCE.getScale()); - } - @ModifyExpressionValue(method = "onMouseScroll", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledWidth()I")) public int onMouseScrollWidth(int originalScaledWidth) { return (int) (originalScaledWidth / InventoryScale.INSTANCE.getScale()); |