mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
15 lines
710 B
Diff
15 lines
710 B
Diff
--- 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);
|