mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Added encode and decode methods for more packets
This commit is contained in:
@ -42,7 +42,11 @@ class PlayerInputPacket extends DataPacket{
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
|
||||
$this->reset();
|
||||
$this->putLFloat($this->motionX);
|
||||
$this->putLFloat($this->motionY);
|
||||
$this->putBool($this->unknownBool1);
|
||||
$this->putBool($this->unknownBool2);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
Reference in New Issue
Block a user