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
@@ -102,7 +102,7 @@ public class ChunkHider18 implements ChunkHider {
boolean singletonPalette = section.getBitsPerBlock() == 0;
if(singletonPalette) {
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);
}else if(section.getBitsPerBlock() < 15) {
section.processPalette();
}
@@ -123,7 +123,7 @@ public class ChunkHider18 implements ChunkHider {
case SKIP:
break;
case CHECK:
if(!section.getObfuscate().contains(values.a(pos)))
if(!section.getBlockIdsToObfuscate().contains(values.a(pos)))
break;
case HIDE:
values.b(pos, section.getTarget());