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