mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-21 07:09:21 +08:00
a207d14a0e
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
20 lines
1.0 KiB
Diff
20 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Fri, 15 Jun 2018 20:37:03 -0400
|
|
Subject: [PATCH] Print Error details when failing to save player data
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java b/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java
|
|
index 60fe01e824e4657d2601797d7858d5de339ab255..5b2a558d4d357d0de033ec2d7a9b4686f202c903 100644
|
|
--- a/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java
|
|
+++ b/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java
|
|
@@ -43,7 +43,7 @@ public class PlayerDataStorage {
|
|
|
|
Util.safeReplaceFile(file1, file, file2);
|
|
} catch (Exception exception) {
|
|
- PlayerDataStorage.LOGGER.warn("Failed to save player data for {}", entityhuman.getName().getString());
|
|
+ PlayerDataStorage.LOGGER.error("Failed to save player data for {}", entityhuman.getScoreboardName(), exception); // Paper
|
|
}
|
|
|
|
}
|