mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-19 15:09:25 +00:00
1. Wet the drys 2. Dry the wets 3. Wet the drys 4. Dry the wets 5. Wet the drys 6. Now dust the wets
29 lines
1.4 KiB
Diff
29 lines
1.4 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/net/minecraft/server/players/PlayerList.java b/net/minecraft/server/players/PlayerList.java
|
|
index 4c172e2aee3e48d42009cd39b28f694aa71e20e3..386423589443051b8c461926c570352dd612a051 100644
|
|
--- a/net/minecraft/server/players/PlayerList.java
|
|
+++ b/net/minecraft/server/players/PlayerList.java
|
|
@@ -1561,6 +1561,8 @@ public abstract class PlayerList {
|
|
if (serverStatsCounter == null) {
|
|
File file = this.server.getWorldPath(LevelResource.PLAYER_STATS_DIR).toFile();
|
|
File file1 = new File(file, 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();
|
|
@@ -1568,6 +1570,8 @@ public abstract class PlayerList {
|
|
file2.renameTo(file1);
|
|
}
|
|
}
|
|
+ */
|
|
+ // Leaf end - Remove useless creating stats json bases on player name logic
|
|
|
|
serverStatsCounter = new ServerStatsCounter(this.server, file1);
|
|
// this.stats.put(uuid, serverStatsCounter); // CraftBukkit
|