Maybe fix Techhider
All checks were successful
SteamWarCI Build successful

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2025-11-30 14:36:44 +01:00
parent 6f4ec64ef7
commit 6f248b78b8
2 changed files with 5 additions and 2 deletions

View File

@@ -107,7 +107,8 @@ public class ChunkHider21 implements ChunkHider {
int value = ProtocolUtils.readVarInt(section.getIn()); int value = ProtocolUtils.readVarInt(section.getIn());
ProtocolUtils.writeVarInt(section.getOut(), !section.isSkipSection() && section.getObfuscate().contains(value) ? section.getTarget() : value); ProtocolUtils.writeVarInt(section.getOut(), !section.isSkipSection() && section.getObfuscate().contains(value) ? section.getTarget() : value);
return; return;
} else { } else if (section.getBitsPerBlock() < 9) {
// Indirect (paletted) storage only present when bitsPerBlock < 9 in 1.21+
section.processPalette(); section.processPalette();
} }
@@ -152,6 +153,9 @@ public class ChunkHider21 implements ChunkHider {
} else if(section.getBitsPerBlock() < 6) { } else if(section.getBitsPerBlock() < 6) {
section.skipPalette(); section.skipPalette();
section.skipNewDataArray(64); section.skipNewDataArray(64);
} else {
// Direct (global) biome IDs no palette present
section.skipNewDataArray(64);
} }
} }
} }

View File

@@ -28,7 +28,6 @@ java {
tasks.compileJava { tasks.compileJava {
options.encoding "UTF-8" options.encoding "UTF-8"
options.compilerArgs << '--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED'
} }
sourceSets { sourceSets {