diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c11f178..d3d77a9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ metadata.format.version = "1.1" [versions] -minestom = "6932647e24" +minestom = "b0bad7e180" zstd = "1.5.5-3" fastutil = "8.5.12" diff --git a/src/main/java/net/hollowcube/polar/PolarLoader.java b/src/main/java/net/hollowcube/polar/PolarLoader.java index d059e19..103121a 100644 --- a/src/main/java/net/hollowcube/polar/PolarLoader.java +++ b/src/main/java/net/hollowcube/polar/PolarLoader.java @@ -37,11 +37,10 @@ @SuppressWarnings("UnstableApiUsage") public class PolarLoader implements IChunkLoader { + static final Logger logger = LoggerFactory.getLogger(PolarLoader.class); private static final BlockManager BLOCK_MANAGER = MinecraftServer.getBlockManager(); private static final DynamicRegistry BIOME_REGISTRY = MinecraftServer.getBiomeRegistry(); private static final ExceptionManager EXCEPTION_HANDLER = MinecraftServer.getExceptionManager(); - static final Logger logger = LoggerFactory.getLogger(PolarLoader.class); - private static final int PLAINS_BIOME_ID = BIOME_REGISTRY.getId(Biome.PLAINS); private final Map biomeReadCache = new ConcurrentHashMap<>(); @@ -235,8 +234,8 @@ private void loadSection(@NotNull PolarSection sectionData, @NotNull Section sec private byte[] getLightArray(@NotNull LightContent content, byte @Nullable [] data) { return switch (content) { case MISSING -> null; - case EMPTY -> LightCompute.emptyContent; - case FULL -> LightCompute.contentFullyLit; + case EMPTY -> LightCompute.EMPTY_CONTENT; + case FULL -> LightCompute.CONTENT_FULLY_LIT; case PRESENT -> data; }; } @@ -402,8 +401,8 @@ private void updateChunkData(@NotNull Short2ObjectMap blockCache, @NotNu private @NotNull LightContent getLightContent(byte @Nullable [] data) { if (data == null) return LightContent.MISSING; - if (data.length == 0 || Arrays.equals(data, LightCompute.emptyContent)) return LightContent.EMPTY; - if (Arrays.equals(data, LightCompute.contentFullyLit)) return LightContent.FULL; + if (data.length == 0 || Arrays.equals(data, LightCompute.EMPTY_CONTENT)) return LightContent.EMPTY; + if (Arrays.equals(data, LightCompute.CONTENT_FULLY_LIT)) return LightContent.FULL; return LightContent.PRESENT; }