From b8bad9b6bf2432ef5efae65b727fc7c6a6e2daa5 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Fri, 27 Dec 2024 18:12:14 -0600 Subject: [PATCH] fix compiling for MC 1.20.4 --- .../wrappers/worldGeneration/BatchGenerationEnvironment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/BatchGenerationEnvironment.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/BatchGenerationEnvironment.java index 7df101d0d..1c2a8ec17 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/BatchGenerationEnvironment.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/BatchGenerationEnvironment.java @@ -879,10 +879,10 @@ public final class BatchGenerationEnvironment extends AbstractBatchGenerationEnv throw new IllegalStateException("No chunk holder after ticket has been added"); } - #if MC_VER <= MC_1_20_6 + #if MC_VER <= MC_1_20_4 return holder.getOrScheduleFuture(ChunkStatus.FEATURES, level.getChunkSource().chunkMap) .thenApply(result -> result.left().orElseThrow(() -> new RuntimeException(result.right().get().toString()))); // can throw if the server is shutting down - #elif MC_VER <= MC_1_20_4 + #elif MC_VER <= MC_1_20_6 return holder.getOrScheduleFuture(ChunkStatus.FEATURES, level.getChunkSource().chunkMap) .thenApply(result -> result.orElseThrow(() -> new RuntimeException(result.toString()))); // can throw if the server is shutting down #else