Skip to content

Commit 7812e8a

Browse files
committed
add player name
1 parent b018fb1 commit 7812e8a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/io/github/moulberry/notenoughupdates/profileviewer/CrashRecoveryPage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public CrashRecoveryPage(
5959
crashReport = new CrashReport("NEU Profile Viewer crashed", exception);
6060
val parameters = crashReport.makeCategory("Profile Viewer Parameters");
6161

62-
parameters.addCrashSection("Viewed Player", (profile == null ? "null" : profile.getUuid()));
62+
parameters.addCrashSection("Viewed Player", getInstance().getEntityPlayer().getName());
63+
parameters.addCrashSection("Viewed Player UUID", (profile == null ? "null" : profile.getUuid()));
6364
parameters.addCrashSection("Viewed Profile", GuiProfileViewer.getProfileName());
6465
parameters.addCrashSection("Timestamp", timestamp);
6566
parameters.addCrashSection("Last Viewed Page", lastViewedPage);
@@ -88,7 +89,8 @@ public void drawPage(int mouseX, int mouseY, float partialTicks) {
8889
drawString("§cJoin our support server at §adiscord.gg/moulberry§c.");
8990

9091
val profile = GuiProfileViewer.getProfile();
91-
drawString("Viewed Player: " + (profile == null ? "null" : profile.getUuid()));
92+
drawString("Viewed Player: " + getInstance().getEntityPlayer().getName());
93+
drawString("Viewed Player UUID: " + (profile == null ? "null" : profile.getUuid()));
9294
drawString("Viewed Profile: " + GuiProfileViewer.getProfileName());
9395
drawString("Timestamp: " + timestamp);
9496

0 commit comments

Comments
 (0)