always flush chunk updates when tick freezes (#422)

This commit is contained in:
hadroncfy authored and GitHub committed 2020-08-20 22:57:10 -03:00
1 parent 68f545df4f
commit 2788770109
3 files changed
+41 -2

No files matched your search

@@ -95,6 +95,9 @@ public abstract class ThreadedAnvilChunkStorage_scarpetChunkCreationMixin implem
@Shadow
protected abstract CompletableFuture<Either<List<Chunk>, Unloaded>> getRegion (final ChunkPos centerChunk, final int margin, final IntFunction<ChunkStatus> distanceToStatus);
@Shadow
protected abstract Iterable<ChunkHolder> entryIterator();
//in method_20617
//method_19534(Lnet/minecraft/server/world/ChunkHolder;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
// incmopatibility with optifine makes this mixin fail.
@@ -426,4 +429,9 @@ public abstract class ThreadedAnvilChunkStorage_scarpetChunkCreationMixin implem
return report;
}
@Override
public Iterable<ChunkHolder> getChunks() {
return entryIterator();
}
}