From c96a8f34916c17bb8bc01a33f764873d4435fde7 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Mon, 28 Aug 2023 02:45:49 +0300 Subject: [PATCH] added src of freehij --- src/config.php | 8 ++++---- src/network/protocol/ProtocolInfo.php | 2 +- src/network/protocol/packet/MovePlayerPacket.php | 3 ++- src/network/protocol/packet/UseItemPacket.php | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/config.php b/src/config.php index a53cf9d0..b87c3fb9 100644 --- a/src/config.php +++ b/src/config.php @@ -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")))); diff --git a/src/network/protocol/ProtocolInfo.php b/src/network/protocol/ProtocolInfo.php index d59cb9e2..e8331bc1 100644 --- a/src/network/protocol/ProtocolInfo.php +++ b/src/network/protocol/ProtocolInfo.php @@ -1,7 +1,7 @@ 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; } diff --git a/src/network/protocol/packet/UseItemPacket.php b/src/network/protocol/packet/UseItemPacket.php index b4807724..584ff0fa 100644 --- a/src/network/protocol/packet/UseItemPacket.php +++ b/src/network/protocol/packet/UseItemPacket.php @@ -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();