Fix book gui not being suppressed during replay (fixes #90)

This commit is contained in:
Jonas Herzig
2017-08-25 15:01:06 +02:00
parent 5b04edbbd3
commit 767ea292a7

View File

@@ -365,6 +365,13 @@ public class ReplaySender extends ChannelDuplexHandler {
if(BAD_PACKETS.contains(p.getClass())) return null; if(BAD_PACKETS.contains(p.getClass())) return null;
if (p instanceof S3FPacketCustomPayload) {
S3FPacketCustomPayload packet = (S3FPacketCustomPayload) p;
if ("MC|BOpen".equals(packet.getChannelName())) {
return null;
}
}
convertLegacyEntityIds(p); convertLegacyEntityIds(p);
if(p instanceof S48PacketResourcePackSend) { if(p instanceof S48PacketResourcePackSend) {