diff options
author | md_5 <git@md-5.net> | 2018-07-25 19:32:06 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-25 19:32:06 +1000 |
commit | 1ef1ffd664b55d9dc9800023182c779daff2594a (patch) | |
tree | a2940c1415873b59f1e0898e217cf05a14830097 /nms-patches/ChunkTaskScheduler.patch | |
parent | 3599dbe3c27ad950700b9a76d198951e15f882ba (diff) | |
download | craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.tar craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.tar.gz craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.tar.lz craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.tar.xz craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.zip |
SPIGOT-4137: Fix World.regenerateChunk
Diffstat (limited to 'nms-patches/ChunkTaskScheduler.patch')
-rw-r--r-- | nms-patches/ChunkTaskScheduler.patch | 15 |
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); |