From 03bf9ccb08cc3f5b825090d2b34f6e8c4eaa34a7 Mon Sep 17 00:00:00 2001 From: ishland Date: Sat, 2 Nov 2024 22:17:41 +0800 Subject: [PATCH] fix: properly map NEW to level 45 --- .../c2me/rewrites/chunksystem/common/NewChunkStatus.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c2me-rewrites-chunk-system/src/main/java/com/ishland/c2me/rewrites/chunksystem/common/NewChunkStatus.java b/c2me-rewrites-chunk-system/src/main/java/com/ishland/c2me/rewrites/chunksystem/common/NewChunkStatus.java index f86fdfb25..5e4f2c232 100644 --- a/c2me-rewrites-chunk-system/src/main/java/com/ishland/c2me/rewrites/chunksystem/common/NewChunkStatus.java +++ b/c2me-rewrites-chunk-system/src/main/java/com/ishland/c2me/rewrites/chunksystem/common/NewChunkStatus.java @@ -48,6 +48,11 @@ public CompletionStage upgradeToThis(ChunkLoadingContext context) { public CompletionStage downgradeFromThis(ChunkLoadingContext context) { throw new UnsupportedOperationException(); } + + @Override + public int toVanillaLevel() { + return ChunkLevels.INACCESSIBLE + 1; + } }; statuses.add(NEW); DISK = Config.asyncSerialization ? new ReadFromDiskAsync(statuses.size()) : new ReadFromDisk(statuses.size());