mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-19 15:09:25 +00:00
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 1920e0ce0c70f4bf10635754819bbdf6a4d275ff..430c5f02cb0f52a7a655a1b8bd23db8bf93fb43d 100644
|
|
--- a/net/minecraft/server/players/PlayerList.java
|
|
+++ b/net/minecraft/server/players/PlayerList.java
|
|
@@ -1557,6 +1557,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();
|
|
@@ -1564,6 +1566,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
|