diff --git a/proxy/src/main/java/net/md_5/bungee/packet/PacketInputStream.java b/proxy/src/main/java/net/md_5/bungee/packet/PacketInputStream.java index a12323aa..35238b80 100644 --- a/proxy/src/main/java/net/md_5/bungee/packet/PacketInputStream.java +++ b/proxy/src/main/java/net/md_5/bungee/packet/PacketInputStream.java @@ -63,5 +63,13 @@ public class PacketInputStream implements AutoCloseable out.write(ret); return ret; } + + @Override + public int read(byte[] b, int off, int len) throws IOException + { + int ret = wrapped.read(b, off, len); + out.write(b, off, ret); + return ret; + } } }