mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 08:38:45 +01:00
24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
--- a/net/minecraft/server/ChunkTaskScheduler.java
|
|
+++ b/net/minecraft/server/ChunkTaskScheduler.java
|
|
@@ -20,7 +20,7 @@
|
|
private final ChunkGenerator<?> d;
|
|
private final IChunkLoader e;
|
|
private final IAsyncTaskHandler f;
|
|
- private final Long2ObjectMap<Scheduler.a> progressCache = new ExpiringMap(8192, 5000) {
|
|
+ private final Long2ObjectMap<Scheduler.a> progressCache = new ExpiringMap<Scheduler.a>(8192, 5000) { // CraftBukkit - decompile error
|
|
protected boolean a(Scheduler.a scheduler_a) {
|
|
ProtoChunk protochunk = (ProtoChunk) scheduler_a.a();
|
|
|
|
@@ -40,6 +40,12 @@
|
|
this.f = iasynctaskhandler;
|
|
}
|
|
|
|
+ // CraftBukkit start
|
|
+ public void forcePolluteCache(ChunkCoordIntPair chunkcoordintpair) {
|
|
+ this.progressCache.put(chunkcoordintpair.a(), new Scheduler.a(chunkcoordintpair, new ProtoChunk(chunkcoordintpair, ChunkConverter.a), ChunkStatus.EMPTY));
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
@Nullable
|
|
protected Scheduler.a a(ChunkCoordIntPair chunkcoordintpair, boolean flag) {
|
|
IChunkLoader ichunkloader = this.e;
|