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
|
2023-12-05 23:12:48 +01:00
|
|
|
index 08f4cc47ec3aa4dd6980ba543219891a510b010b..b3a90d6ef0e17c236e0b3c46e2d0012671afdaa7 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
|
2023-12-05 23:12:48 +01:00
|
|
|
@@ -47,7 +47,7 @@ public class PlayerDataStorage {
|
2021-06-11 14:02:28 +02:00
|
|
|
|
2023-12-05 23:12:48 +01:00
|
|
|
Util.safeReplaceFile(path2, path1, path3);
|
2021-06-11 14:02:28 +02:00
|
|
|
} 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
|
|
|
}
|
|
|
|
|
|
|
|
}
|