Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
fb25dc17c6
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: da08d022 SPIGOT-4700: Add PlayerFishEvent.State.REEL_IN 0cef14e4 Remove draft API from selectEntities CraftBukkit Changes:a46fdbc6
Remove outdated build delay.3697519b
SPIGOT-4708: Fix ExactChoice recipes neglecting material9ead7009
SPIGOT-4677: Add minecraft.admin.command_feedback permissionc3749a23
Remove the Damage tag from items when it is 0.f74c7b95
SPIGOT-4706: Can't interact with active item494eef45
Mention requirement of JIRA ticket for bug fixes51d62dec
SPIGOT-4702: Exception when middle clicking certain slotsbe557e69
SPIGOT-4700: Add PlayerFishEvent.State.REEL_IN
32 Zeilen
1.6 KiB
Diff
32 Zeilen
1.6 KiB
Diff
From efd33c3794e72cc40a77a3e58ecf90aec6efd6c2 Mon Sep 17 00:00:00 2001
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
Date: Sun, 24 Mar 2019 18:52:31 +0000
|
|
Subject: [PATCH] Don't update entity trackers for worlds without players
|
|
|
|
PlayerList#moveToWorld already untracks the player from the player list,
|
|
meaning that we do not need to worry about this untracking players
|
|
who've left the world, The server also untracks a player during
|
|
disconnect, handing yet another case.
|
|
|
|
If we don't need to untrack players who've left the world, it should be
|
|
reasonably save to do this, as we're not going to be performing any
|
|
server->client updates here, which is what this code is intended to do,
|
|
and all players should be untracked.
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
index ce39ea09e8..b93fccf919 100644
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
@@ -1113,7 +1113,7 @@ public abstract class MinecraftServer implements IAsyncTaskHandler, IMojangStati
|
|
|
|
this.methodProfiler.exit();
|
|
this.methodProfiler.enter("tracker");
|
|
- worldserver.getTracker().updatePlayers();
|
|
+ if (playerList.players.size() > 0) worldserver.getTracker().updatePlayers(); // Paper - No players, why spend time tracking them? (See patch)
|
|
this.methodProfiler.exit();
|
|
this.methodProfiler.exit();
|
|
worldserver.explosionDensityCache.clear(); // Paper - Optimize explosions
|
|
--
|
|
2.21.0
|
|
|