mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Fix wrong SetDifficultyPacket decode
This commit is contained in:
@ -30,7 +30,7 @@ class SetDifficultyPacket extends DataPacket{
|
||||
public $difficulty;
|
||||
|
||||
public function decode(){
|
||||
$this->difficulty = $this->getInt();
|
||||
$this->difficulty = $this->getUnsignedVarInt();
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
|
Reference in New Issue
Block a user