From 644ddf7f5408b82248d0a5ac56ee35c037b2175d Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Fri, 14 Jun 2024 00:33:37 +0200 Subject: [PATCH] feat: Support Minecraft 1.21 --- gradle.properties | 10 +++++----- .../se/icus/mag/modsettings/gui/ModListWidget.java | 4 ++-- src/main/resources/fabric.mod.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gradle.properties b/gradle.properties index 556468a..657bb6e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.20.3 -yarn_mappings=1.20.3+build.1 -loader_version=0.15.10 +minecraft_version=1.21 +yarn_mappings=1.21+build.1 +loader_version=0.15.11 # Mod Properties project_name=Mod Settings -mod_version=1.1.0+1.20.3 +mod_version=1.2.0+1.21 maven_group=se.icus.mag archives_base_name=modsettings # Fabric api -fabric_version=0.91.1+1.20.3 +fabric_version=0.100.1+1.21 diff --git a/src/main/java/se/icus/mag/modsettings/gui/ModListWidget.java b/src/main/java/se/icus/mag/modsettings/gui/ModListWidget.java index 96b1526..4518506 100644 --- a/src/main/java/se/icus/mag/modsettings/gui/ModListWidget.java +++ b/src/main/java/se/icus/mag/modsettings/gui/ModListWidget.java @@ -25,8 +25,8 @@ public int getRowWidth() { } @Override - protected int getScrollbarPositionX() { - return super.getScrollbarPositionX() + 32; + protected int getScrollbarX() { + return super.getScrollbarX() + 32; } public void addAll(ModSettingsScreen.ModSettingsOption[] options) { diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index ce3036f..10faca9 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -33,6 +33,6 @@ "fabricloader": ">=0.7.4", "fabric-screen-api-v1": ">=1.0.4", "fabric-key-binding-api-v1": ">=1.0.1", - "minecraft": "~1.20.3" + "minecraft": "~1.21" } }