aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0196-Print-Error-details-when-failing-to-save-player-data.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0196-Print-Error-details-when-failing-to-save-player-data.patch')
-rw-r--r--patches/server/0196-Print-Error-details-when-failing-to-save-player-data.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0196-Print-Error-details-when-failing-to-save-player-data.patch b/patches/server/0196-Print-Error-details-when-failing-to-save-player-data.patch
new file mode 100644
index 0000000000..0885ca8d10
--- /dev/null
+++ b/patches/server/0196-Print-Error-details-when-failing-to-save-player-data.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+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 cd013567dd6224c86c0f1813d8a3d5fb7b8cabb5..b54a3741cd3ba615c83c98985cb4b3c4c586ed7a 100644
+--- a/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java
++++ b/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java
+@@ -47,7 +47,7 @@ public class PlayerDataStorage {
+
+ Util.safeReplaceFile(path2, path1, path3);
+ } catch (Exception exception) {
+- PlayerDataStorage.LOGGER.warn("Failed to save player data for {}", player.getName().getString());
++ PlayerDataStorage.LOGGER.warn("Failed to save player data for {}", player.getScoreboardName(), exception); // Paper - Print exception
+ }
+
+ }