Refactored over all functionality

This commit is contained in:
D4rkr34lm
2026-05-13 22:48:44 +02:00
parent c30aad179b
commit 6766862a00
13 changed files with 91 additions and 234 deletions
@@ -105,7 +105,7 @@ public class ChunkHider21 implements ChunkHider {
boolean singleValued = section.getBitsPerBlock() == 0;
if (singleValued) {
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.getBlockIdsToObfuscate().contains(value) ? section.getTarget() : value);
return;
} else if (section.getBitsPerBlock() < 9) {
// Indirect (paletted) storage only present when bitsPerBlock < 9 in 1.21+
@@ -130,7 +130,7 @@ public class ChunkHider21 implements ChunkHider {
case SKIP:
break;
case CHECK:
if (!section.getObfuscate().contains(values.get(pos)))
if (!section.getBlockIdsToObfuscate().contains(values.get(pos)))
break;
case HIDE:
values.set(pos, section.getTarget());