2021-06-11 14:02:28 +02:00
|
|
|
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
|
2022-09-26 10:02:51 +02:00
|
|
|
index 6909b6be840e8d4feadcc8b0c5a44fc1b9c81a54..601f8099f74e81c17600566b3c9b7a6dd39c9bcb 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- 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) {
|
2021-06-12 21:30:37 +02:00
|
|
|
- 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
|
2021-06-11 14:02:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|