diff --git a/common/src/main/java/me/drex/antixray/common/util/controller/ChunkPacketBlockControllerAntiXray.java b/common/src/main/java/me/drex/antixray/common/util/controller/ChunkPacketBlockControllerAntiXray.java index 9b8f3d7..3e4d206 100644 --- a/common/src/main/java/me/drex/antixray/common/util/controller/ChunkPacketBlockControllerAntiXray.java +++ b/common/src/main/java/me/drex/antixray/common/util/controller/ChunkPacketBlockControllerAntiXray.java @@ -201,7 +201,7 @@ public void obfuscate(ChunkPacketInfoAntiXray chunkPacketInfoAntiXray) { LevelChunkSection[] nearbyChunkSections = new LevelChunkSection[4]; LevelChunk chunk = chunkPacketInfoAntiXray.getChunk(); Level level = chunk.getLevel(); - int maxChunkSectionIndex = Math.min((maxBlockHeight >> 4) - chunk.getMinSection(), chunk.getSectionsCount() - 1); + int maxChunkSectionIndex = Math.min((maxBlockHeight >> 4) - chunk.getMinSectionY(), chunk.getSectionsCount() - 1); bitStorageReader.setBuffer(chunkPacketInfoAntiXray.getBuffer()); bitStorageWriter.setBuffer(chunkPacketInfoAntiXray.getBuffer()); int numberOfBlocks = presetBlockStateBits.length; @@ -209,7 +209,7 @@ public void obfuscate(ChunkPacketInfoAntiXray chunkPacketInfoAntiXray) { for (int chunkSectionIndex = 0; chunkSectionIndex <= maxChunkSectionIndex; chunkSectionIndex++) { if (chunkPacketInfoAntiXray.isWritten(chunkSectionIndex) && chunkPacketInfoAntiXray.getPresetValues(chunkSectionIndex) != null) { if (chunkPacketInfoAntiXray.getPalette(chunkSectionIndex) instanceof GlobalPalette) { - presetBlockStateBits = getPresetBlockStateBits(level, (chunkSectionIndex + chunk.getMinSection()) << 4); + presetBlockStateBits = getPresetBlockStateBits(level, (chunkSectionIndex + chunk.getMinSectionY()) << 4); } else { BlockState[] presetBlockStates = chunkPacketInfoAntiXray.getPresetValues(chunkSectionIndex); diff --git a/gradle.properties b/gradle.properties index e3fdcd3..c69aeb1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,8 +2,8 @@ org.gradle.jvmargs=-Xmx3G # Minecraft Properties -minecraft=24w33a -fabric_version=0.16.1 +minecraft=24w34a +fabric_version=0.16.2 forge_version=51.0.3 neoforged_version=21.1.12