From afd6dbc374c8dd3d6b06f1ebd5fa5a6ff460c659 Mon Sep 17 00:00:00 2001 From: Error110 <133914452+Error11O@users.noreply.github.com> Date: Tue, 13 Feb 2024 18:29:14 +0000 Subject: [PATCH 1/2] 1.20.4 support --- gradle.properties | 8 ++++---- .../meteornotificationsaddon/NotificationsAddon.java | 4 ++-- .../commands/NotificationsCommand.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index 326ed95..b308349 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,9 +1,9 @@ org.gradle.jvmargs=-Xmx2G # Fabric (https://fabricmc.net/versions.html) -minecraft_version=1.19.2 -yarn_mappings=1.19.2+build.8 -loader_version=0.14.9 +minecraft_version=1.20.4 +yarn_mappings=1.20.4+build.2 +loader_version=0.15.1 # Mod Properties mod_version=2.0.0 @@ -13,4 +13,4 @@ archives_base_name=notifications-addon # Dependency Versions # Meteor (https://maven.meteordev.org/) -meteor_version=0.5.1-SNAPSHOT +meteor_version=0.5.6-SNAPSHOT diff --git a/src/main/java/com/github/simulatan/meteornotificationsaddon/NotificationsAddon.java b/src/main/java/com/github/simulatan/meteornotificationsaddon/NotificationsAddon.java index 4760693..6153737 100644 --- a/src/main/java/com/github/simulatan/meteornotificationsaddon/NotificationsAddon.java +++ b/src/main/java/com/github/simulatan/meteornotificationsaddon/NotificationsAddon.java @@ -4,7 +4,7 @@ import com.github.simulatan.meteornotificationsaddon.hud.NotificationsHudElement; import com.mojang.logging.LogUtils; import meteordevelopment.meteorclient.addons.MeteorAddon; -import meteordevelopment.meteorclient.systems.commands.Commands; +import meteordevelopment.meteorclient.commands.Commands; import meteordevelopment.meteorclient.systems.hud.Hud; import meteordevelopment.meteorclient.systems.hud.HudGroup; import org.slf4j.Logger; @@ -18,7 +18,7 @@ public class NotificationsAddon extends MeteorAddon { public void onInitialize() { LOG.info("Initializing Meteor Notifications Addon by SIMULATAN"); - Commands.get().add(new NotificationsCommand()); + Commands.add(new NotificationsCommand()); // HUD Hud.get().register(NotificationsHudElement.INFO); diff --git a/src/main/java/com/github/simulatan/meteornotificationsaddon/commands/NotificationsCommand.java b/src/main/java/com/github/simulatan/meteornotificationsaddon/commands/NotificationsCommand.java index 20ab755..1c98e83 100644 --- a/src/main/java/com/github/simulatan/meteornotificationsaddon/commands/NotificationsCommand.java +++ b/src/main/java/com/github/simulatan/meteornotificationsaddon/commands/NotificationsCommand.java @@ -11,7 +11,7 @@ import com.mojang.brigadier.exceptions.DynamicCommandExceptionType; import com.mojang.brigadier.suggestion.Suggestions; import com.mojang.brigadier.suggestion.SuggestionsBuilder; -import meteordevelopment.meteorclient.systems.commands.Command; +import meteordevelopment.meteorclient.commands.Command; import meteordevelopment.meteorclient.utils.player.ChatUtils; import net.minecraft.command.CommandSource; From 4b0da9954094e4c6c6d079931191ec9434610612 Mon Sep 17 00:00:00 2001 From: SIMULATAN Date: Thu, 15 Feb 2024 09:02:47 +0100 Subject: [PATCH 2/2] Bump versions --- build.gradle | 2 +- gradle.properties | 6 +++--- gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 6ef1125..46aeac2 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '0.12-SNAPSHOT' + id 'fabric-loom' version '1.5-SNAPSHOT' id 'maven-publish' } diff --git a/gradle.properties b/gradle.properties index b308349..df8e0f7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,11 +2,11 @@ org.gradle.jvmargs=-Xmx2G # Fabric (https://fabricmc.net/versions.html) minecraft_version=1.20.4 -yarn_mappings=1.20.4+build.2 -loader_version=0.15.1 +yarn_mappings=1.20.4+build.3 +loader_version=0.15.2 # Mod Properties -mod_version=2.0.0 +mod_version=3.0.0 maven_group=com.github.simulatan archives_base_name=notifications-addon diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 4605298..2bbac7d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists \ No newline at end of file