mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
Update to Minecraft 1.13.1
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
--- a/net/minecraft/server/ChunkTaskScheduler.java
|
||||
+++ b/net/minecraft/server/ChunkTaskScheduler.java
|
||||
@@ -39,6 +39,12 @@
|
||||
@@ -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.g.put(chunkcoordintpair.a(), new Scheduler.a(chunkcoordintpair, new ProtoChunk(chunkcoordintpair, ChunkConverter.a), ChunkStatus.EMPTY));
|
||||
+ this.progressCache.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);
|
||||
@Nullable
|
||||
protected Scheduler.a a(ChunkCoordIntPair chunkcoordintpair, boolean flag) {
|
||||
IChunkLoader ichunkloader = this.e;
|
||||
|
Reference in New Issue
Block a user