diff --git a/src/pocketmine/network/protocol/SetHealthPacket.php b/src/pocketmine/network/protocol/SetHealthPacket.php index 7ce8895b4..f55b0e6bd 100644 --- a/src/pocketmine/network/protocol/SetHealthPacket.php +++ b/src/pocketmine/network/protocol/SetHealthPacket.php @@ -30,7 +30,7 @@ class SetHealthPacket extends DataPacket{ public $health; public function decode(){ - $this->health = $this->getInt(); + $this->health = $this->getVarInt(); } public function encode(){