Do not send Sound Effect Packets while rendering, as they might blow your ear away afterwards

This commit is contained in:
CrushedPixel
2015-08-04 17:04:15 +02:00
parent 59624d21b5
commit 1d1193bd25

View File

@@ -285,6 +285,12 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
protected Packet processPacket(Packet p) throws Exception {
if(BAD_PACKETS.contains(p.getClass())) return null;
if(ReplayProcess.isVideoRecording() && ReplayHandler.isInPath()) {
if(p instanceof S29PacketSoundEffect) {
return null;
}
}
if(p instanceof S48PacketResourcePackSend) {
S48PacketResourcePackSend packet = (S48PacketResourcePackSend) p;
String url = packet.func_179783_a();