Protocol 22

This commit is contained in:
Shoghi Cervantes 2015-04-15 12:38:52 +02:00
parent 68ea9b067f
commit 64c366bdb5
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ interface Info{
/** /**
* Actual Minecraft: PE protocol version * Actual Minecraft: PE protocol version
*/ */
const CURRENT_PROTOCOL = 21; const CURRENT_PROTOCOL = 22;
const LOGIN_PACKET = 0x82; const LOGIN_PACKET = 0x82;
const PLAY_STATUS_PACKET = 0x83; const PLAY_STATUS_PACKET = 0x83;

View File

@ -35,12 +35,12 @@ class SetHealthPacket extends DataPacket{
} }
public function decode(){ public function decode(){
$this->health = $this->getByte(); $this->health = $this->getInt();
} }
public function encode(){ public function encode(){
$this->reset(); $this->reset();
$this->putByte($this->health); $this->putInt($this->health);
} }
} }