diff --git a/src/main/java/net/citizensnpcs/npc/network/EmptySocket.java b/src/main/java/net/citizensnpcs/npc/network/EmptySocket.java index e68200db0..baa2b1d60 100644 --- a/src/main/java/net/citizensnpcs/npc/network/EmptySocket.java +++ b/src/main/java/net/citizensnpcs/npc/network/EmptySocket.java @@ -10,11 +10,13 @@ public class EmptySocket extends Socket { @Override public InputStream getInputStream() { - return new ByteArrayInputStream(new byte[10]); + return new ByteArrayInputStream(EMPTY); } @Override public OutputStream getOutputStream() { - return new ByteArrayOutputStream(); + return new ByteArrayOutputStream(1); } + + private static final byte[] EMPTY = new byte[0]; } \ No newline at end of file