Fixed ladders

This commit is contained in:
Shoghi Cervantes 2013-06-08 16:36:53 +02:00
parent 4f3e49b6a9
commit 8d2862a744
4 changed files with 9 additions and 6 deletions

View file

@ -232,7 +232,7 @@ class MinecraftInterface{
if(count($this->chunked[$CID][3][$ID]) === $count){
ksort($this->chunked[$CID][3][$ID]);
$data = gzinflate(implode($this->chunked[$CID][3][$ID]));
$data = gzinflate(implode($this->chunked[$CID][3][$ID]), 524280);
unset($this->chunked[$CID][3][$ID]);
if($data === false or strlen($data) === 0){
console("[ERROR] Invalid DEFLATEPacket for ".$this->chunked[$CID][1].":".$this->chunked[$CID][2], true, true, 2);

View file

@ -67,7 +67,7 @@ class UDPSocket{
if($this->connected === false){
return false;
}
return @socket_recvfrom($this->sock, $buf, 65535, 0, $source, $port);
return @socket_recvfrom($this->sock, $buf, 1500, 0, $source, $port);
}
public function write($data, $dest = false, $port = false){