diff options
| author | Roman / Nea <roman.graef@gmail.com> | 2022-05-31 20:53:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-31 20:53:26 +0200 |
| commit | dfdc2d9519556dfec528ab9d1732cdf32aab0639 (patch) | |
| tree | 6f046db7b581f40b2deedd202ceaf98ba9ec2567 /src/main/java/io/github/moulberry/notenoughupdates/commands/profile/ViewProfileCommand.java | |
| parent | a6546a1abe954b394c40be58d73d6fb03d93709e (diff) | |
| download | notenoughupdates-dfdc2d9519556dfec528ab9d1732cdf32aab0639.tar.gz notenoughupdates-dfdc2d9519556dfec528ab9d1732cdf32aab0639.tar.bz2 notenoughupdates-dfdc2d9519556dfec528ab9d1732cdf32aab0639.zip | |
Move repository related configuration to GUI. (#151)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/commands/profile/ViewProfileCommand.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/commands/profile/ViewProfileCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/ViewProfileCommand.java b/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/ViewProfileCommand.java index 371db394..fe441ad6 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/ViewProfileCommand.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/ViewProfileCommand.java @@ -23,8 +23,8 @@ public class ViewProfileCommand extends ClientCommandBase { "Some parts of the profile viewer do not work with OF Fast Render. Go to ESC > Options > Video Settings > Performance > Fast Render to disable it.")); } - if (NotEnoughUpdates.INSTANCE.config.apiKey.apiKey == null || - NotEnoughUpdates.INSTANCE.config.apiKey.apiKey.trim().isEmpty()) { + if (NotEnoughUpdates.INSTANCE.config.apiData.apiKey == null || + NotEnoughUpdates.INSTANCE.config.apiData.apiKey.trim().isEmpty()) { Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Can't view profile, apikey is not set. Run /api new and put the result in settings.")); } else if (args.length == 0) { |
