From 66cda24219ea329152f91897765850b57a09caac Mon Sep 17 00:00:00 2001 From: RedCarlos <58893097+RedCarlos26@users.noreply.github.com> Date: Mon, 1 May 2023 18:25:24 -0400 Subject: [PATCH] Update to 1.19.4 & fix commands code (#32) --- gradle.properties | 6 +++--- src/main/java/com/example/addon/Addon.java | 4 ++-- .../java/com/example/addon/commands/CommandExample.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index d69c2c2..c18ff9b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,8 @@ org.gradle.jvmargs=-Xmx2G -# Fabric Properties (https://fabricmc.net/versions.html) +# Fabric Properties (https://fabricmc.net/develop) minecraft_version=1.19.4 -yarn_mappings=1.19.4+build.1 +yarn_mappings=1.19.4+build.2 loader_version=0.14.19 # Mod Properties @@ -12,5 +12,5 @@ archives_base_name=addon-template # Dependencies -# Meteor (https://maven.meteordev.org/) +# Meteor (https://maven.meteordev.org) meteor_version=0.5.3-SNAPSHOT diff --git a/src/main/java/com/example/addon/Addon.java b/src/main/java/com/example/addon/Addon.java index 9ff03fc..bafcd47 100644 --- a/src/main/java/com/example/addon/Addon.java +++ b/src/main/java/com/example/addon/Addon.java @@ -5,7 +5,7 @@ import com.example.addon.hud.HudExample; import com.example.addon.modules.ModuleExample; 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 meteordevelopment.meteorclient.systems.modules.Category; @@ -25,7 +25,7 @@ public class Addon extends MeteorAddon { Modules.get().add(new ModuleExample()); // Commands - Commands.get().add(new CommandExample()); + Commands.add(new CommandExample()); // HUD Hud.get().register(HudExample.INFO); diff --git a/src/main/java/com/example/addon/commands/CommandExample.java b/src/main/java/com/example/addon/commands/CommandExample.java index 9c1c3b7..94dfdf9 100644 --- a/src/main/java/com/example/addon/commands/CommandExample.java +++ b/src/main/java/com/example/addon/commands/CommandExample.java @@ -1,7 +1,7 @@ package com.example.addon.commands; import com.mojang.brigadier.builder.LiteralArgumentBuilder; -import meteordevelopment.meteorclient.systems.commands.Command; +import meteordevelopment.meteorclient.commands.Command; import net.minecraft.command.CommandSource; import static com.mojang.brigadier.Command.SINGLE_SUCCESS;