mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
added src of freehij
This commit is contained in:
parent
a8f4a287ea
commit
c96a8f3491
4 changed files with 8 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
abstract class ProtocolInfo{
|
||||
const CURRENT_PROTOCOL = 18;
|
||||
const CURRENT_PROTOCOL = 20;
|
||||
|
||||
const PING_PACKET = 0x00;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue