Delete mixin trace logging code
This commit is contained in:
@@ -16,12 +16,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
public abstract class ClientPlayNetworkHandlerBlockEntityUpdateMixin {
|
||||
@Inject(method = "onBlockEntityUpdate(Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;)V", at = @At("HEAD"))
|
||||
private void signleakshield$captureSign(BlockEntityUpdateS2CPacket packet, CallbackInfo ci) {
|
||||
SignLeakShieldTraceLog.info(
|
||||
"Block entity update received: pos=%s type=%s hasNbt=%s",
|
||||
packet.getPos(),
|
||||
packet.getBlockEntityType(),
|
||||
packet.getNbt() != null
|
||||
);
|
||||
if (packet.getNbt() == null) {
|
||||
return;
|
||||
}
|
||||
@@ -31,12 +25,6 @@ public abstract class ClientPlayNetworkHandlerBlockEntityUpdateMixin {
|
||||
}
|
||||
|
||||
BlockPos pos = packet.getPos();
|
||||
SignLeakShieldTraceLog.info(
|
||||
"Block entity sign captured: pos=%s type=%s nbtKeys=%s",
|
||||
pos,
|
||||
packet.getBlockEntityType(),
|
||||
packet.getNbt().getKeys()
|
||||
);
|
||||
ExploitState.SIGNS.put(pos.toImmutable(), SignTextExtractor.fromNbt(packet.getNbt()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,11 +17,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
public abstract class ClientPlayNetworkHandlerChunkDataMixin {
|
||||
@Inject(method = "onChunkData(Lnet/minecraft/network/packet/s2c/play/ChunkDataS2CPacket;)V", at = @At("HEAD"))
|
||||
private void signleakshield$captureChunkData(ChunkDataS2CPacket packet, CallbackInfo ci) {
|
||||
SignLeakShieldTraceLog.info(
|
||||
"Chunk data received: chunkX=%s chunkZ=%s",
|
||||
packet.getChunkX(),
|
||||
packet.getChunkZ()
|
||||
);
|
||||
packet.getChunkData().getBlockEntities(packet.getChunkX(), packet.getChunkZ()).accept((localPos, type, nbt) -> {
|
||||
if (nbt == null) {
|
||||
return;
|
||||
@@ -32,12 +27,6 @@ public abstract class ClientPlayNetworkHandlerChunkDataMixin {
|
||||
}
|
||||
|
||||
BlockPos pos = localPos.toImmutable();
|
||||
SignLeakShieldTraceLog.info(
|
||||
"Chunk sign captured: pos=%s type=%s nbtKeys=%s",
|
||||
pos,
|
||||
type,
|
||||
nbt.getKeys()
|
||||
);
|
||||
ExploitState.SIGNS.put(pos, SignTextExtractor.fromNbt((NbtCompound) nbt));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user