From 8f949511b8394c4ecbb722e1c969a552c6ac00cc Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 17 Jul 2021 21:57:00 +0200 Subject: [PATCH] Revert "Fix PaperTickList" (#6216) This commit reverts https://github.com/PaperMC/Paper/commit/a5acf367a37549ea3b7cb0eb8c0115973d0c58de --- .../server/0388-Optimise-TickListServer-by-rewriting-it.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/0388-Optimise-TickListServer-by-rewriting-it.patch b/patches/server/0388-Optimise-TickListServer-by-rewriting-it.patch index 0dcdb7f4bd..da47f162fa 100644 --- a/patches/server/0388-Optimise-TickListServer-by-rewriting-it.patch +++ b/patches/server/0388-Optimise-TickListServer-by-rewriting-it.patch @@ -924,7 +924,7 @@ index 1dd1b9afaee38fdc994ad0a069bd63b02eedf55c..8104b9be5a8e8d57f6f50475788aec6a }); // Paper end diff --git a/src/main/java/net/minecraft/server/level/ServerChunkCache.java b/src/main/java/net/minecraft/server/level/ServerChunkCache.java -index 550338a7170437415342df7bc1b0a5c445480300..57aa6d18d181c50071bcfcc933cde9fa828be792 100644 +index 550338a7170437415342df7bc1b0a5c445480300..34174c3cdcb69c96e8601e28ecaf01df9b8c0f37 100644 --- a/src/main/java/net/minecraft/server/level/ServerChunkCache.java +++ b/src/main/java/net/minecraft/server/level/ServerChunkCache.java @@ -219,6 +219,13 @@ public class ServerChunkCache extends ChunkSource { @@ -935,7 +935,7 @@ index 550338a7170437415342df7bc1b0a5c445480300..57aa6d18d181c50071bcfcc933cde9fa + public final boolean isPositionTickingWithEntitiesLoaded(BlockPos pos) { + long position = net.minecraft.server.MCUtil.getCoordinateKey(pos); + ChunkHolder chunkHolder = this.chunkMap.getUpdatingChunkIfPresent(position); -+ return chunkHolder != null && chunkHolder.isTickingReady() && this.level.entityManager.areEntitiesLoaded(position); ++ return chunkHolder != null && chunkHolder.isTickingReady() /* && this.level.entityManager.areEntitiesLoaded(position) */; // TODO Needs to wait for entities, but has to be manually marked as ready + } + // Paper end - rewrite ticklistserver