protocol 17

This commit is contained in:
GameHerobrine 2023-07-02 07:45:29 +03:00
parent 0aa9843458
commit 6b765abbe3
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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 = [];