diff --git a/SpigotCore/SpigotCore_21/src/de/steamwar/techhider/ChunkHider21.java b/SpigotCore/SpigotCore_21/src/de/steamwar/techhider/ChunkHider21.java index 0d0cb782..1cc6c29c 100644 --- a/SpigotCore/SpigotCore_21/src/de/steamwar/techhider/ChunkHider21.java +++ b/SpigotCore/SpigotCore_21/src/de/steamwar/techhider/ChunkHider21.java @@ -107,7 +107,8 @@ public class ChunkHider21 implements ChunkHider { int value = ProtocolUtils.readVarInt(section.getIn()); ProtocolUtils.writeVarInt(section.getOut(), !section.isSkipSection() && section.getObfuscate().contains(value) ? section.getTarget() : value); return; - } else { + } else if (section.getBitsPerBlock() < 9) { + // Indirect (paletted) storage – only present when bitsPerBlock < 9 in 1.21+ section.processPalette(); } @@ -152,6 +153,9 @@ public class ChunkHider21 implements ChunkHider { } else if(section.getBitsPerBlock() < 6) { section.skipPalette(); section.skipNewDataArray(64); + } else { + // Direct (global) biome IDs – no palette present + section.skipNewDataArray(64); } } } diff --git a/buildSrc/src/steamwar.java.gradle b/buildSrc/src/steamwar.java.gradle index ee5b7a01..338a496c 100644 --- a/buildSrc/src/steamwar.java.gradle +++ b/buildSrc/src/steamwar.java.gradle @@ -28,7 +28,6 @@ java { tasks.compileJava { options.encoding "UTF-8" - options.compilerArgs << '--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED' } sourceSets {