aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index fdff55f3..56ed9502 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -147,7 +147,9 @@ public class GuiProfileViewer extends GuiScreen {
}
{
//this is just to cache the guild info
- JsonObject guildinfo = profile.getGuildInfo(null);
+ if(profile != null) {
+ JsonObject guildinfo = profile.getGuildInfo(null);
+ }
}
this.sizeX = 431;
@@ -2224,14 +2226,6 @@ public class GuiProfileViewer extends GuiScreen {
}
{
- String first_join = this.getTimeSinceString(profileInfo, "first_join");
- if(first_join != null) {
- Utils.renderAlignedString(EnumChatFormatting.AQUA + "Joined", EnumChatFormatting.WHITE.toString() + first_join,
- guiLeft + xStart, guiTop + yStartTop + yOffset * 3, 76);
- }
-
- }
- {
JsonObject guildInfo = profile.getGuildInfo(null);
if(guildInfo != null && guildInfo.has("name")){
Utils.renderAlignedString(EnumChatFormatting.AQUA + "Guild", EnumChatFormatting.WHITE.toString() + guildInfo.get("name").getAsString(),