Skip to content

Commit

Permalink
Update to 24w34a
Browse files Browse the repository at this point in the history
  • Loading branch information
DrexHD committed Aug 22, 2024
1 parent 5662079 commit d118c31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ 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;

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);

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d118c31

Please sign in to comment.