Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user