Update to 1.19.4 & fix commands code (#32)

This commit is contained in:
RedCarlos 2023-05-01 18:25:24 -04:00 committed by GitHub
parent 519431a401
commit 66cda24219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
org.gradle.jvmargs=-Xmx2G org.gradle.jvmargs=-Xmx2G
# Fabric Properties (https://fabricmc.net/versions.html) # Fabric Properties (https://fabricmc.net/develop)
minecraft_version=1.19.4 minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1 yarn_mappings=1.19.4+build.2
loader_version=0.14.19 loader_version=0.14.19
# Mod Properties # Mod Properties
@ -12,5 +12,5 @@ archives_base_name=addon-template
# Dependencies # Dependencies
# Meteor (https://maven.meteordev.org/) # Meteor (https://maven.meteordev.org)
meteor_version=0.5.3-SNAPSHOT meteor_version=0.5.3-SNAPSHOT

View File

@ -5,7 +5,7 @@ import com.example.addon.hud.HudExample;
import com.example.addon.modules.ModuleExample; import com.example.addon.modules.ModuleExample;
import com.mojang.logging.LogUtils; import com.mojang.logging.LogUtils;
import meteordevelopment.meteorclient.addons.MeteorAddon; 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.Hud;
import meteordevelopment.meteorclient.systems.hud.HudGroup; import meteordevelopment.meteorclient.systems.hud.HudGroup;
import meteordevelopment.meteorclient.systems.modules.Category; import meteordevelopment.meteorclient.systems.modules.Category;
@ -25,7 +25,7 @@ public class Addon extends MeteorAddon {
Modules.get().add(new ModuleExample()); Modules.get().add(new ModuleExample());
// Commands // Commands
Commands.get().add(new CommandExample()); Commands.add(new CommandExample());
// HUD // HUD
Hud.get().register(HudExample.INFO); Hud.get().register(HudExample.INFO);

View File

@ -1,7 +1,7 @@
package com.example.addon.commands; package com.example.addon.commands;
import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import meteordevelopment.meteorclient.systems.commands.Command; import meteordevelopment.meteorclient.commands.Command;
import net.minecraft.command.CommandSource; import net.minecraft.command.CommandSource;
import static com.mojang.brigadier.Command.SINGLE_SUCCESS; import static com.mojang.brigadier.Command.SINGLE_SUCCESS;