mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Unknown in PlayerFallPacket is fallDistance
This commit is contained in:
parent
f881cea8e0
commit
17102058ca
@ -27,10 +27,10 @@ namespace pocketmine\network\protocol;
|
|||||||
class PlayerFallPacket extends DataPacket{
|
class PlayerFallPacket extends DataPacket{
|
||||||
const NETWORK_ID = Info::PLAYER_FALL_PACKET;
|
const NETWORK_ID = Info::PLAYER_FALL_PACKET;
|
||||||
|
|
||||||
public $unknown; //betting this is fall distance, but let's make sure first
|
public $fallDistance;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
$this->unknown = $this->getLFloat();
|
$this->fallDistance = $this->getLFloat();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function encode(){
|
public function encode(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user