From a45e2328293009f4781d419c178cfae1c19aa0a5 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 12 Oct 2016 15:54:57 +0100 Subject: [PATCH] Fix wrong SetDifficultyPacket decode --- src/pocketmine/network/protocol/SetDifficultyPacket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/network/protocol/SetDifficultyPacket.php b/src/pocketmine/network/protocol/SetDifficultyPacket.php index 1b0beb653..a9220f0c5 100644 --- a/src/pocketmine/network/protocol/SetDifficultyPacket.php +++ b/src/pocketmine/network/protocol/SetDifficultyPacket.php @@ -30,7 +30,7 @@ class SetDifficultyPacket extends DataPacket{ public $difficulty; public function decode(){ - $this->difficulty = $this->getInt(); + $this->difficulty = $this->getUnsignedVarInt(); } public function encode(){