mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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 $difficulty;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
$this->difficulty = $this->getInt();
|
$this->difficulty = $this->getUnsignedVarInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function encode(){
|
public function encode(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user