From dbc4a23994188e9323f6462077be3b66f821fdf4 Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:21:32 -0400 Subject: [PATCH] Update mod to Minecraft snapshot 23w42a (#665) - Updated to 23w42a --- gradle.properties | 10 +++++----- .../modmenu/gui/widget/ModListWidget.java | 3 +-- src/main/resources/fabric.mod.json | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gradle.properties b/gradle.properties index 6cb95f60d..e803935aa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,10 +3,10 @@ org.gradle.jvmargs=-Xmx1G maven_group=com.terraformersmc archive_name=modmenu -minecraft_version=1.20.2 -yarn_mappings=1.20.2+build.1 -loader_version=0.14.22 -fabric_version=0.89.2+1.20.2 +minecraft_version=23w42a +yarn_mappings=23w42a+build.1 +loader_version=0.14.23 +fabric_version=0.90.3+1.20.3 quilt_loader_version=0.17.7 # Project Metadata @@ -20,7 +20,7 @@ default_release_type=stable # Modrinth Metadata modrinth_slug=modmenu modrinth_id=mOgUt4GM -modrinth_game_versions=1.20.2 +modrinth_game_versions=23w42a modrinth_mod_loaders=fabric, quilt # Mod Loader Metadata diff --git a/src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java b/src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java index 9a2d8247b..0e49a31d5 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java @@ -266,8 +266,7 @@ public boolean mouseClicked(double double_1, double double_2, int int_1) { this.setDragging(true); return true; } - } else if (int_1 == 0) { - this.clickedHeader((int) (double_1 - (double) (this.left + this.width / 2 - this.getRowWidth() / 2)), (int) (double_2 - (double) this.top) + (int) this.getScrollAmount() - 4); + } else if (int_1 == 0 && this.clickedHeader((int) (double_1 - (double) (this.left + this.width / 2 - this.getRowWidth() / 2)), (int) (double_2 - (double) this.top) + (int) this.getScrollAmount() - 4)) { return true; } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 773f48164..493f8693a 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -24,8 +24,8 @@ "fabric-screen-api-v1": ">=1.0.4", "fabric-key-binding-api-v1": "*", "fabric-lifecycle-events-v1": "*", - "fabricloader": ">=0.12.13", - "minecraft": ">=1.20.2-" + "fabricloader": ">=0.12.23", + "minecraft": ">=1.20.3-" }, "breaks" : { "better_mod_button": "*"