Skip to content

Commit

Permalink
Text.literal -> Text.of
Browse files Browse the repository at this point in the history
  • Loading branch information
xpple committed Jul 15, 2023
1 parent 12cec65 commit b2b538d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
public class ClientServerConsentTest implements ClientModInitializer {
public static final String MOD_ID = "fabric-server-consent-api-v1-testmod";

private static final Identifier EXAMPLE_FLAG = new Identifier(MOD_ID, "example_flag");
private static final Identifier EXAMPLE_FLAG_2 = new Identifier(MOD_ID, "example_flag_2");
private static final Identifier EXAMPLE_FLAG = new Identifier(MOD_ID, "example_feature");
private static final Identifier EXAMPLE_FLAG_2 = new Identifier(MOD_ID, "example_feature_2");

@Override
public void onInitializeClient() {
Expand All @@ -43,7 +43,7 @@ public void onInitializeClient() {
dispatcher.register(ClientCommandManager.literal(EXAMPLE_FLAG.toString())
.requires(source -> {
if (ClientFabricServerConsent.isIllegal(EXAMPLE_FLAG)) {
source.sendError(Text.literal("Flag disabled: " + EXAMPLE_FLAG));
source.sendError(Text.of("Flag disabled: " + EXAMPLE_FLAG));
return false;
}

Expand Down

0 comments on commit b2b538d

Please sign in to comment.