Unknown in PlayerFallPacket is fallDistance

This commit is contained in:
Dylan K. Taylor 2017-01-28 22:03:28 +00:00
parent f881cea8e0
commit 17102058ca

View File

@ -27,10 +27,10 @@ namespace pocketmine\network\protocol;
class PlayerFallPacket extends DataPacket{
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(){
$this->unknown = $this->getLFloat();
$this->fallDistance = $this->getLFloat();
}
public function encode(){