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(){