aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PeekCommand.java
diff options
context:
space:
mode:
authorefefury <69400149+efefury@users.noreply.github.com>2022-07-10 16:04:00 +0200
committerGitHub <noreply@github.com>2022-07-11 00:04:00 +1000
commit04d6f54c067a5cdab61186eb37f67fef11affa57 (patch)
tree7fac9ce78eab682d64d4d0b69787636895247ee1 /src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PeekCommand.java
parent6e40cd5d2426eee681b091acc6e0822d4d7c45b5 (diff)
downloadnotenoughupdates-04d6f54c067a5cdab61186eb37f67fef11affa57.tar.gz
notenoughupdates-04d6f54c067a5cdab61186eb37f67fef11affa57.tar.bz2
notenoughupdates-04d6f54c067a5cdab61186eb37f67fef11affa57.zip
ah profit cool gui display (#178)
Co-authored-by: Lulonaut <lulonaut@tutanota.de> Co-authored-by: nopo <noahogno@gmail.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PeekCommand.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PeekCommand.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PeekCommand.java b/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PeekCommand.java
index 3133edf5..21afff87 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PeekCommand.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PeekCommand.java
@@ -102,6 +102,7 @@ public class PeekCommand extends ClientCommandBase {
boolean isMe = name.equalsIgnoreCase("moulberry");
PlayerStats.Stats stats = profile.getStats(null);
+ if (stats == null) return;
JsonObject skill = profile.getSkillInfo(null);
Minecraft.getMinecraft().ingameGUI