diff --git a/src/pocketmine/network/protocol/Info.php b/src/pocketmine/network/protocol/Info.php index ade08ef35..7018573b1 100644 --- a/src/pocketmine/network/protocol/Info.php +++ b/src/pocketmine/network/protocol/Info.php @@ -30,7 +30,7 @@ interface Info{ /** * Actual Minecraft: PE protocol version */ - const CURRENT_PROTOCOL = 21; + const CURRENT_PROTOCOL = 22; const LOGIN_PACKET = 0x82; const PLAY_STATUS_PACKET = 0x83; diff --git a/src/pocketmine/network/protocol/SetHealthPacket.php b/src/pocketmine/network/protocol/SetHealthPacket.php index 33f2038b3..15b42b066 100644 --- a/src/pocketmine/network/protocol/SetHealthPacket.php +++ b/src/pocketmine/network/protocol/SetHealthPacket.php @@ -35,12 +35,12 @@ class SetHealthPacket extends DataPacket{ } public function decode(){ - $this->health = $this->getByte(); + $this->health = $this->getInt(); } public function encode(){ $this->reset(); - $this->putByte($this->health); + $this->putInt($this->health); } } \ No newline at end of file