mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-23 17:09:29 +00:00
Upstream has released updates that appear to apply and compile correctly Gale Changes: Dreeam-qwq/Gale@de9e804 Updated Upstream (Paper)
29 lines
1.5 KiB
Diff
29 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
|
|
Date: Tue, 27 Feb 2024 03:17:10 -0500
|
|
Subject: [PATCH] Remove useless creating stats json bases on player name logic
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
index ec3ee8a6c14660a55dd868ca557ccffae0a94674..c812130e62c3bbbb14de9b9f96bc10988f05a8e8 100644
|
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
@@ -1537,6 +1537,8 @@ public abstract class PlayerList {
|
|
File file = this.server.getWorldPath(LevelResource.PLAYER_STATS_DIR).toFile();
|
|
File file1 = new File(file, String.valueOf(uuid) + ".json");
|
|
|
|
+ // Leaf start - Remove useless creating stats json bases on player name logic
|
|
+ /*
|
|
if (!file1.exists()) {
|
|
File file2 = new File(file, displayName + ".json"); // CraftBukkit
|
|
Path path = file2.toPath();
|
|
@@ -1545,6 +1547,8 @@ public abstract class PlayerList {
|
|
file2.renameTo(file1);
|
|
}
|
|
}
|
|
+ */
|
|
+ // Leaf end - Remove useless creating stats json bases on player name logic
|
|
|
|
serverstatisticmanager = new ServerStatsCounter(this.server, file1);
|
|
// this.stats.put(uuid, serverstatisticmanager); // CraftBukkit
|