summaryrefslogtreecommitdiffstats
path: root/nms-patches/ChunkTaskScheduler.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/ChunkTaskScheduler.patch')
-rw-r--r--nms-patches/ChunkTaskScheduler.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/nms-patches/ChunkTaskScheduler.patch b/nms-patches/ChunkTaskScheduler.patch
new file mode 100644
index 00000000..dc448358
--- /dev/null
+++ b/nms-patches/ChunkTaskScheduler.patch
@@ -0,0 +1,15 @@
+--- a/net/minecraft/server/ChunkTaskScheduler.java
++++ b/net/minecraft/server/ChunkTaskScheduler.java
+@@ -39,6 +39,12 @@
+ this.f = iasynctaskhandler;
+ }
+
++ // CraftBukkit start
++ public void forcePolluteCache(ChunkCoordIntPair chunkcoordintpair) {
++ this.g.put(chunkcoordintpair.a(), new Scheduler.a(chunkcoordintpair, new ProtoChunk(chunkcoordintpair, ChunkConverter.a), ChunkStatus.EMPTY));
++ }
++ // CraftBukkit end
++
+ protected Scheduler.a a(ChunkCoordIntPair chunkcoordintpair) {
+ return (Scheduler.a) this.g.computeIfAbsent(Long.valueOf(chunkcoordintpair.a()), (olong) -> {
+ ProtoChunk protochunk = this.a(chunkcoordintpair.x, chunkcoordintpair.z);