Did some improvements

This commit is contained in:
Shoghi Cervantes Pueyo
2013-01-15 19:25:33 +01:00
parent 4ddb8a298b
commit fe7595e313
7 changed files with 25 additions and 12 deletions

View File

@ -95,7 +95,7 @@ class MinecraftInterface{
}
$packet = new Packet($pid, $struct, $data[0]);
$packet->parse();
@$packet->parse();
$this->data[] = array($pid, $packet->data, $data[0], $data[1], $data[2]);
return $this->popPacket();
}
@ -121,7 +121,7 @@ class MinecraftInterface{
if($raw === false){
$packet = new Packet($pid, $struct);
$packet->data = $data;
$packet->create();
@$packet->create();
$write = $this->socket->write($packet->raw, $dest, $port);
$this->writeDump($pid, $packet->raw, $data, "client", $dest, $port);
}else{