Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2026-05-12 20:52:36 +02:00
parent 5305aaf669
commit 07bf47481a
@@ -83,7 +83,7 @@ public class TechHider {
techhiders.put(multiBlockChangePacket, ProtocolWrapper.impl.multiBlockChangeGenerator(this));
techhiders.put(ChunkHider.impl.mapChunkPacket(), ChunkHider.impl.chunkHiderGenerator(this));
if(Core.getVersion() > 12) {
if(Core.getVersion() > 12 && Core.getVersion() < 19 || Core.getVersion() >= 21) {
Class<?> blockBreakClass = Reflection.getClass("net.minecraft.network.protocol.game.ClientboundBlockDestructionPacket");
BiFunction<Player, Object, Object> blockBreakHider = ProtocolWrapper.impl.blockBreakHiderGenerator(blockBreakClass, this);
if(blockBreakHider != null)