Update for 1.6.5

This commit is contained in:
Erik Broes
2011-05-28 22:50:08 +02:00
committed by EvilSeph
parent 9ec5d8b5df
commit 6dbd710bbf
41 changed files with 747 additions and 669 deletions

View File

@@ -69,11 +69,6 @@ public abstract class Packet {
int i;
try {
// CraftBukkit start - sleep while nothing to do
while(datainputstream.available() <= 0) {
Thread.sleep(10);
}
// CraftBukkit end
i = datainputstream.read();
if (i == -1) {
return null;
@@ -102,10 +97,6 @@ public abstract class Packet {
System.out.println("Connection reset");
return null;
}
catch (InterruptedException exception) {
System.out.println("Thread exception");
return null;
}
// CraftBukkit end
PacketCounter packetcounter = (PacketCounter) e.get(Integer.valueOf(i));