diff --git a/CHANGELOG.md b/CHANGELOG.md index 425ae35..6473051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.6.1 - 2026-07-26 + +### Fixed +- Fixed a NeoForge 1.21.11 startup crash: `MouseMixin` still targeted the removed `MouseHandler.onPress`; it now injects into `onButton` on 1.21.5+. + ## 1.6.0 - 2026-07-25 ### Added diff --git a/gradle.properties b/gradle.properties index 6627fba..2c9a77c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx4G org.gradle.parallel=true dev.kikugie.stonecutter.hard_mode=true -mod_version=1.6.0 +mod_version=1.6.1 maven_group=land.webgui archives_base_name=webgui diff --git a/src/main/java/land/webgui/mixin/MouseMixin.java b/src/main/java/land/webgui/mixin/MouseMixin.java index e49da81..ee3898e 100644 --- a/src/main/java/land/webgui/mixin/MouseMixin.java +++ b/src/main/java/land/webgui/mixin/MouseMixin.java @@ -9,7 +9,7 @@ //? } else { /*import net.minecraft.client.Minecraft; import net.minecraft.client.MouseHandler; -//? if >=26 { +//? if >=1.21.5 { import net.minecraft.client.input.MouseButtonInfo; //? }*/ //? } @@ -36,7 +36,7 @@ public class MouseMixin { @Inject(method = "onMouseButton", at = @At("HEAD"), cancellable = true) private void webgui$cancelVanillaForWebHudPseudoGui(long window, MouseInput input, int action, CallbackInfo ci) { //? } else { - /*//? if >=26 { + /*//? if >=1.21.5 { @Inject(method = "onButton", at = @At("HEAD"), cancellable = true) private void webgui$cancelVanillaForWebHudPseudoGui(long window, MouseButtonInfo rawButtonInfo, int action, CallbackInfo ci) { //? } else { @@ -106,7 +106,7 @@ public class MouseMixin { browser.sendMouseRelease(lx, ly, input.button()); } //? } else { - /*//? if >=26 { + /*//? if >=1.21.5 { if (action == GLFW.GLFW_PRESS) { browser.sendMousePress(lx, ly, rawButtonInfo.button()); } else if (action == GLFW.GLFW_RELEASE) {