added src of freehij

This commit is contained in:
GameHerobrine 2023-08-28 02:45:49 +03:00
parent a8f4a287ea
commit c96a8f3491
4 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<?php
abstract class ProtocolInfo{
const CURRENT_PROTOCOL = 18;
const CURRENT_PROTOCOL = 20;
const PING_PACKET = 0x00;

View file

@ -19,8 +19,9 @@ class MovePlayerPacket extends RakNetDataPacket{
$this->y = $this->getFloat();
$this->z = $this->getFloat();
$this->yaw = $this->getFloat();
$this->bodyYaw = $this->getFloat();
$this->pitch = $this->getFloat();
$this->bodyYaw = $this->getFloat();
$flags = $this->getByte();
$this->teleport = ($this->getByte() & 0x80) > 0;
}

View file

@ -23,7 +23,7 @@ class UseItemPacket extends RakNetDataPacket{
$this->x = $this->getInt();
$this->y = $this->getInt();
$this->z = $this->getInt();
$this->face = $this->getInt();
$this->face = $this->getByte();
$this->item = $this->getShort();
$this->meta = $this->getShort();
$this->eid = $this->getInt();