From 557257baed69b8d77e8188ca133f611c8453ab60 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 4 Nov 2016 16:29:19 +0000 Subject: [PATCH] Fix wrong SetHealthPacket decode --- src/pocketmine/network/protocol/SetHealthPacket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(){