Getting ready, protocol changes!

This commit is contained in:
Shoghi Cervantes
2015-04-09 17:42:06 +02:00
parent f2e2cec024
commit b4a0afc2c8
2 changed files with 36 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class RespawnPacket extends DataPacket{
}
public function decode(){
$this->getLong(); //TODO: remove
$this->x = $this->getFloat();
$this->y = $this->getFloat();
$this->z = $this->getFloat();
@ -44,6 +45,7 @@ class RespawnPacket extends DataPacket{
public function encode(){
$this->reset();
$this->putLong(0); //TODO: remove
$this->putFloat($this->x);
$this->putFloat($this->y);
$this->putFloat($this->z);