mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
hunk system fixes
This commit is contained in:
@@ -18587,8 +18587,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ private static final class EntityRegionFileStorage extends net.minecraft.world.level.chunk.storage.RegionFileStorage {
|
||||
+
|
||||
+ public EntityRegionFileStorage(Path directory, boolean dsync) {
|
||||
+ super(directory, dsync);
|
||||
+ public EntityRegionFileStorage(RegionStorageInfo storageKey, Path directory, boolean dsync) {
|
||||
+ super(storageKey, directory, dsync);
|
||||
+ }
|
||||
+
|
||||
+ protected void write(ChunkPos pos, net.minecraft.nbt.CompoundTag nbt) throws IOException {
|
||||
@@ -20283,6 +20283,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
public class ChunkStatus {
|
||||
+ static final ChunkStatus.LoadingTask PASSTHROUGH_LOAD_TASK = (WorldGenContext context, ChunkStatus status, ToFullChunk fullChunkConverter, ChunkAccess chunk) -> CompletableFuture.completedFuture(chunk); // Paper - rewrite chunk system
|
||||
+ protected static final java.util.List<ChunkStatus> statuses = new java.util.ArrayList<>(); // Paper - rewrite chunk system
|
||||
public static final int MAX_STRUCTURE_DISTANCE = 8;
|
||||
private static final EnumSet<Heightmap.Types> PRE_FEATURES = EnumSet.of(Heightmap.Types.OCEAN_FLOOR_WG, Heightmap.Types.WORLD_SURFACE_WG);
|
||||
public static final EnumSet<Heightmap.Types> POST_FEATURES = EnumSet.of(
|
||||
@@ -20341,8 +20342,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public int writeRadius = -1;
|
||||
+ public int loadRange = 0;
|
||||
+
|
||||
+ protected static final java.util.List<ChunkStatus> statuses = new java.util.ArrayList<>();
|
||||
+
|
||||
+ private ChunkStatus nextStatus;
|
||||
+
|
||||
+ public final ChunkStatus getNextStatus() {
|
||||
|
Reference in New Issue
Block a user