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
|
|
@ -48,11 +48,11 @@ set_include_path(get_include_path() . PATH_SEPARATOR . FILE_PATH);
|
|||
ini_set("memory_limit", "256M"); //Default
|
||||
define("LOG", true);
|
||||
define("START_TIME", microtime(true));
|
||||
define("MAJOR_VERSION", "2.0.0dev");
|
||||
define("CODENAME", "Breadfence"); //i'm not very creative - kotyaralih
|
||||
define("CURRENT_MINECRAFT_VERSION", "v0.9.5 alpha");
|
||||
define("MAJOR_VERSION", "3.0.0dev");
|
||||
define("CODENAME", "Pumpkin Pie"); //i'm not very creative - kotyaralih
|
||||
define("CURRENT_MINECRAFT_VERSION", "v0.10.5 alpha");
|
||||
define("CURRENT_API_VERSION", '13.1');
|
||||
define("CURRENT_PHP_VERSION", "5.5");
|
||||
define("CURRENT_PHP_VERSION", "8.0");
|
||||
$gitsha1 = false;
|
||||
if(file_exists(FILE_PATH . ".git/refs/heads/master")){ //Found Git information!
|
||||
define("GIT_COMMIT", strtolower(trim(file_get_contents(FILE_PATH . ".git/refs/heads/master"))));
|
||||
|
|
|
|||
|
|
@ -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