From 1bd2a0baa681cf9a78970e7f4e7fd1fcb6db4014 Mon Sep 17 00:00:00 2001 From: uku Date: Sat, 31 Dec 2022 18:21:50 +0100 Subject: [PATCH] backport 0.6.1 to 1.18.2 --- build.gradle.kts | 2 +- .../java/net/uku3lig/ukulib/utils/PlayerArgumentType.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 60b954e..1855522 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -45,7 +45,7 @@ dependencies { include(implementation("gs.mclo.java:mclogs-java:2.1.1")!!) include(modImplementation(fabricApi.module("fabric-resource-loader-v0", fabricVersion))!!) - include(modImplementation(fabricApi.module("fabric-command-api-v2", fabricVersion))!!) + include(modImplementation(fabricApi.module("fabric-command-api-v1", fabricVersion))!!) } tasks.processResources { diff --git a/src/main/java/net/uku3lig/ukulib/utils/PlayerArgumentType.java b/src/main/java/net/uku3lig/ukulib/utils/PlayerArgumentType.java index dff32e1..9d63b50 100644 --- a/src/main/java/net/uku3lig/ukulib/utils/PlayerArgumentType.java +++ b/src/main/java/net/uku3lig/ukulib/utils/PlayerArgumentType.java @@ -7,10 +7,10 @@ import com.mojang.brigadier.exceptions.SimpleCommandExceptionType; import com.mojang.brigadier.suggestion.Suggestions; import com.mojang.brigadier.suggestion.SuggestionsBuilder; -import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource; +import net.fabricmc.fabric.api.client.command.v1.FabricClientCommandSource; import net.minecraft.command.CommandSource; import net.minecraft.entity.player.PlayerEntity; -import net.minecraft.text.Text; +import net.minecraft.text.TranslatableText; import java.util.Collection; import java.util.Collections; @@ -23,7 +23,7 @@ public class PlayerArgumentType implements ArgumentType