From 6b765abbe3566041465ebb0893b5659c53655838 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sun, 2 Jul 2023 07:45:29 +0300 Subject: [PATCH] protocol 17 --- src/Player.php | 2 +- src/world/Level.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.php b/src/Player.php index 5ca11d68..fe4a9783 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1314,7 +1314,7 @@ class Player{ $this->close("server is full!", false); return; } - if($packet->protocol1 !== ProtocolInfo::CURRENT_PROTOCOL){ + if($packet->protocol1 !== 17 && $packet->protocol1 !== ProtocolInfo::CURRENT_PROTOCOL){ if($packet->protocol1 < ProtocolInfo::CURRENT_PROTOCOL){ $pk = new LoginStatusPacket; $pk->status = 1; diff --git a/src/world/Level.php b/src/world/Level.php index e2420090..835bd492 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -35,7 +35,7 @@ class Level{ $this->nextSave += 90; $this->stopTime = false; $this->server->schedule(15, [$this, "checkThings"], [], true); - $this->server->schedule(20 * 13, [$this, "checkTime"], [], true); + $this->server->schedule(20 * 7, [$this, "checkTime"], [], true); $this->name = $name; $this->usedChunks = []; $this->changedBlocks = [];