Update to Minecraft 1.13.1
By: md_5 <git@md-5.net>
This commit is contained in:
parent
034c12d001
commit
f578d94680
182 changed files with 1891 additions and 1879 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue