Skip to content

Commit

Permalink
backport 0.6.1 to 1.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Dec 31, 2022
1 parent 21d718b commit 1bd2a0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Expand Up @@ -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 {
Expand Down
Expand Up @@ -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;
Expand All @@ -23,7 +23,7 @@ public class PlayerArgumentType implements ArgumentType<PlayerArgumentType.Playe
/**
* The exception thrown when the selected player is not found.
*/
public static final SimpleCommandExceptionType PLAYER_NOT_FOUND_EXCEPTION = new SimpleCommandExceptionType(Text.translatable("name.entity.notfound.player"));
public static final SimpleCommandExceptionType PLAYER_NOT_FOUND_EXCEPTION = new SimpleCommandExceptionType(new TranslatableText("name.entity.notfound.player"));

/**
* Returns a new instance.
Expand Down

0 comments on commit 1bd2a0b

Please sign in to comment.