summaryrefslogtreecommitdiffstats
path: root/nms-patches/ChunkTaskScheduler.patch
blob: dc4483584d7cb56ea43fb3555fe217ddb18e563c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);