1
0
forked from xjboss/KCauldronX
KCauldronX/patches/net/minecraft/network/rcon/RConThreadClient.java.patch
2015-03-25 08:24:42 +03:00

12 lines
512 B
Diff

--- ../src-base/minecraft/net/minecraft/network/rcon/RConThreadClient.java
+++ ../src-work/minecraft/net/minecraft/network/rcon/RConThreadClient.java
@@ -53,6 +53,8 @@
BufferedInputStream bufferedinputstream = new BufferedInputStream(this.clientSocket.getInputStream());
int i = bufferedinputstream.read(this.buffer, 0, 1460);
+ if (i == -1) this.running = false; // Cauldron
+
if (10 <= i)
{
byte b0 = 0;