mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-22 16:39:22 +00:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@e7e1ab5 Finish converting most of the undeprecated api to jspecify PaperMC/Paper@69ffbec Fix hex color check PaperMC/Paper@709f0f2 Use components properly in ProfileWhitelistVerifyEvent (#11456) PaperMC/Paper@fb76840 [ci skip] Add section on nullability annotations (#11461) PaperMC/Paper@7cd4f2c Check if leash tag has a uuid Gale Changes: Dreeam-qwq/Gale@c81a4b5 Updated Upstream (Paper) Dreeam-qwq/Gale@da78f95 Updated Upstream (Paper) Dreeam-qwq/Gale@c8d1f9b 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 509cf388b501fc446dc9bcd8e79bd7018ef33180..e562e401f4548fd5ec0968e3eab06c65348d3ddd 100644
|
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
@@ -1688,6 +1688,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();
|
|
@@ -1696,6 +1698,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
|