From 7538ff46ed0b5973cc84dad40328179c87ebdd22 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 1 Feb 2013 21:14:40 +1100 Subject: [PATCH] Remove bulk reading, because for an unexplainable reason it can cause garbled data. (reverse-merged from commit ed667e2b72289dd59140d061f4db9bf616bf5b36) --- .../java/net/md_5/bungee/packet/PacketInputStream.java | 8 -------- 1 file changed, 8 deletions(-) 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 35238b80..a12323aa 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,13 +63,5 @@ 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; - } } }