diff --git a/gradle.properties b/gradle.properties index 949605b1..f2cac0b9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ yarn_mappings=1.21+build.2 loader_version=0.15.11 # Mod Properties -mod_version=1.0.0-1.21 +mod_version=1.0.1-1.21 maven_group=pwn.noobs archives_base_name=1trouser-streak diff --git a/src/main/java/pwn/noobs/trouserstreak/modules/NewerNewChunks.java b/src/main/java/pwn/noobs/trouserstreak/modules/NewerNewChunks.java index 34fa0fd2..1e7da8d2 100644 --- a/src/main/java/pwn/noobs/trouserstreak/modules/NewerNewChunks.java +++ b/src/main/java/pwn/noobs/trouserstreak/modules/NewerNewChunks.java @@ -652,29 +652,10 @@ else if (event.packet instanceof ChunkDataS2CPacket && mc.world != null) { // Indirect palette int biomePaletteLength = buf.readVarInt(); //System.out.println("Biome palette length: " + biomePaletteLength); - for (int i = 0; i < biomePaletteLength; i++) { - if (buf.readableBytes() < 1) { - //System.out.println("Incomplete biome palette data"); - return; - } - int biomePaletteEntry = buf.readVarInt(); - if (i == 0 && biomePaletteEntry != 0) isNewChunk = true; - //System.out.println("Biome palette entry " + i + ": " + biomePaletteEntry); - } - // Skip biome data array - if (buf.readableBytes() >= 4) { // Ensure we can read the VarInt - int biomeDataArrayLength = buf.readVarInt(); - int biomeBytesToSkip = biomeDataArrayLength * 8; // Each entry is a long (8 bytes) - if (buf.readableBytes() >= biomeBytesToSkip) { - buf.skipBytes(biomeBytesToSkip); - } else { - //System.out.println("Not enough data for biome array, skipping remaining: " + buf.readableBytes()); - buf.skipBytes(buf.readableBytes()); - } - } else { - //System.out.println("Not enough data for biome array length"); - } + int biomePaletteEntry = buf.readVarInt(); + if (biomePaletteEntry != 0) isNewChunk = true; + //System.out.println("Biome palette entry " + i + ": " + biomePaletteEntry); } else { //System.out.println("Invalid biome bits per entry: " + biomeBitsPerEntry); return; @@ -692,11 +673,9 @@ else if (event.packet instanceof ChunkDataS2CPacket && mc.world != null) { // Indirect palette int blockPaletteLength = buf.readVarInt(); //System.out.println("Block palette length: " + blockPaletteLength); - for (int i = 0; i < blockPaletteLength; i++) { - int blockPaletteEntry = buf.readVarInt(); - if (i == 0 && blockPaletteEntry == 0) isNewChunk = true; - //System.out.println("Block palette entry " + i + ": " + blockPaletteEntry); - } + int blockPaletteEntry = buf.readVarInt(); + if (blockPaletteEntry == 0) isNewChunk = true; + //System.out.println("Block palette entry " + i + ": " + blockPaletteEntry); } } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 1cbb91d0..27e44592 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "id": "streak-addon", - "version": "1.0.0", + "version": "1.0.1", "name": "TrouserStreak", "description": "Trouser-Streak is a compilation of modules, updated to the latest version and optimized for maximum grief. I did not make all of these.", "authors": [