mirror of
https://github.com/Lucaslah/WeatherChanger.git
synced 2026-01-07 22:17:52 +00:00
fix: update architectury + add base archive name to build
- [bug] add base archive name to build artifacts - [deps] update architectury loom from 1.4-SNAPSHOT -> 1.5 - [deps] update architectury plugin to non snapshot build - [bug] fixes an unchecked cast warning during the build
This commit is contained in:
@@ -2,12 +2,10 @@ package me.lucaslah.weatherchanger.commands;
|
||||
|
||||
import com.mojang.brigadier.CommandDispatcher;
|
||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||
import com.mojang.brigadier.tree.CommandNode;
|
||||
import com.mojang.brigadier.tree.LiteralCommandNode;
|
||||
import me.lucaslah.weatherchanger.WeatherChanger;
|
||||
import me.lucaslah.weatherchanger.command.Command;
|
||||
import me.lucaslah.weatherchanger.config.WcMode;
|
||||
import net.minecraft.client.resource.language.I18n;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
@@ -16,7 +14,7 @@ import static me.lucaslah.weatherchanger.WeatherChanger.sendClientMessage;
|
||||
public class WeatherChangerCommand extends Command {
|
||||
@Override
|
||||
public <T> void register(CommandDispatcher<T> dispatcher) {
|
||||
LiteralArgumentBuilder<T> command = LiteralArgumentBuilder.<T>literal("clientweather");
|
||||
LiteralArgumentBuilder<T> command = LiteralArgumentBuilder.literal("clientweather");
|
||||
|
||||
command.then(LiteralArgumentBuilder.<T>literal("off")
|
||||
.executes(context -> {
|
||||
@@ -51,7 +49,7 @@ public class WeatherChangerCommand extends Command {
|
||||
);
|
||||
|
||||
LiteralCommandNode<T> node = dispatcher.register(command);
|
||||
dispatcher.register((LiteralArgumentBuilder<T>) LiteralArgumentBuilder.literal("cweather").redirect((CommandNode<Object>) node));
|
||||
dispatcher.register(LiteralArgumentBuilder.<T>literal("cweather").redirect(node));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user