aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-09 22:12:27 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-09 22:12:27 +0200
commitdce5a156849a3ba1b09e28dbfc153fc14a7f7b2c (patch)
treeb51bffce829a14ed1bdccb581acec2dd1838540e /src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java
parent9d2b7bec68f98228acf913f029f0383e4dcff3d7 (diff)
downloadDulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.tar.gz
DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.tar.bz2
DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.zip
Port to 1.20.6HEADmaster
Diffstat (limited to 'src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java')
-rw-r--r--src/main/java/com/dulkirfabric/mixin/io/MouseMixin.java10
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());