Skip to content

Commit 63f9644

Browse files
committed
Simplify diff in ChunkMap
1 parent e63832e commit 63f9644

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,12 @@
8989
}
9090

9191
this.updatingChunkMap.put(node, chunk);
92-
@@ -411,10 +_,10 @@
93-
}
94-
}
92+
@@ -413,8 +_,8 @@
9593

96-
- protected void saveAllChunks(final boolean flushStorage) {
97-
- if (flushStorage) {
94+
protected void saveAllChunks(final boolean flushStorage) {
95+
if (flushStorage) {
9896
- List<ChunkHolder> chunksToSave = this.visibleChunkMap
9997
- .values()
100-
+ protected void saveAllChunks(boolean flush) {
101-
+ if (flush) {
10298
+ List<ChunkHolder> chunksToSave = ca.spottedleaf.moonrise.common.PlatformHooks.get().getVisibleChunkHolders(this.level) // Paper - moonrise
10399
+ //.values() // Paper - moonrise
104100
.stream()

0 commit comments

Comments
 (0)