From 4a40e19b3464b9b8eced110e9f0f706d1b78e30b Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 13 Apr 2024 09:45:49 -0500 Subject: [PATCH] suppress unchecked warning in LodRenderSection --- .../com/seibel/distanthorizons/core/render/LodRenderSection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/render/LodRenderSection.java b/core/src/main/java/com/seibel/distanthorizons/core/render/LodRenderSection.java index 76b0282f5..71c9a79a1 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/render/LodRenderSection.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/render/LodRenderSection.java @@ -192,6 +192,7 @@ public class LodRenderSection implements IDebugRenderable, AutoCloseable }, executor); } /** Should be called on the {@link ThreadPoolUtil#getFileHandlerExecutor()} */ + @SuppressWarnings("unchecked") // creating an array of CompletableFuture's is unchecked, unfortunately I don't currently see a better fix private CompletableFuture[] getNeighborRenderSourcesAsync() { CompletableFuture[] futureArray = new CompletableFuture[EDhDirection.ADJ_DIRECTIONS.length];