SPIGOT-4137: Fix World.regenerateChunk

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-07-25 19:32:06 +10:00
parent 64f2fdae29
commit c3205e4e12
3 changed files with 35 additions and 9 deletions

View File

@@ -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);