mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
re-revert Better reloading of pending unload chunks
This commit is contained in:
parent
bbc31e2bd8
commit
bacc2bbec0
@ -0,0 +1,25 @@
|
||||
From 646201cc8906ae473235f5debaf1e585cf84c3d9 Mon Sep 17 00:00:00 2001
|
||||
From: Shane Freeder <theboyetronic@gmail.com>
|
||||
Date: Sun, 8 Apr 2018 01:21:23 +0100
|
||||
Subject: [PATCH] revert "Better reloading of pending unload chunks"
|
||||
|
||||
many areas of NMS calls through to this method which means that
|
||||
the server can easilly keep chunks loaded in certain conditions
|
||||
even when they're no longer needed.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
index 55dada668..2ed3fc40b 100644
|
||||
--- a/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
@@ -148,7 +148,7 @@ public class ChunkProviderServer implements IChunkProvider {
|
||||
}
|
||||
|
||||
public Chunk getChunkAt(int i, int j, Runnable runnable, boolean generate) {
|
||||
- Chunk chunk = getLoadedChunkAt(i, j);
|
||||
+ Chunk chunk = getChunkIfLoaded(i, j); // Paper - revert "Better reloading of pending unload chunks" (see patch)
|
||||
ChunkRegionLoader loader = null;
|
||||
|
||||
if (this.chunkLoader instanceof ChunkRegionLoader) {
|
||||
--
|
||||
2.17.0
|
||||
|
Loading…
Reference in New Issue
Block a user