geforkt von Mirrors/Paper
Fixup indent in async chunk io patch
Dieser Commit ist enthalten in:
Ursprung
cc3b3eba50
Commit
3039146dc3
@ -3029,9 +3029,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
- return protochunk1;
|
||||
+ return new InProgressChunkHolder(protochunk1, tasksToExecuteOnMain); // Paper - Async chunk loading
|
||||
}
|
||||
}
|
||||
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ // Paper start - async chunk save for unload
|
||||
+ public record AsyncSaveData(
|
||||
+ DataLayer[] blockLight,
|
||||
@ -3077,7 +3077,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ if (blockEntityNbt != null) {
|
||||
+ blockEntitiesSerialized.add(blockEntityNbt);
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
+
|
||||
+ return new AsyncSaveData(
|
||||
+ blockLight,
|
||||
@ -3087,15 +3087,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ blockEntitiesSerialized,
|
||||
+ world.getGameTime()
|
||||
+ );
|
||||
+ }
|
||||
+
|
||||
}
|
||||
+ // Paper end
|
||||
|
||||
private static void logErrors(ChunkPos chunkPos, int y, String message) {
|
||||
ChunkSerializer.LOGGER.error("Recoverable errors when loading section [" + chunkPos.x + ", " + y + ", " + chunkPos.z + "]: " + message);
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public class ChunkSerializer {
|
||||
}
|
||||
|
||||
public static CompoundTag write(ServerLevel world, ChunkAccess chunk) {
|
||||
+ // Paper start
|
||||
+ return saveChunk(world, chunk, null);
|
||||
+ }
|
||||
+ public static CompoundTag saveChunk(ServerLevel world, ChunkAccess chunk, @org.checkerframework.checker.nullness.qual.Nullable AsyncSaveData asyncsavedata) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren