how didnt i notice it?

This commit is contained in:
GameHerobrine 2023-02-25 13:02:02 +03:00
parent cacfa42413
commit d85814e036
2 changed files with 6 additions and 5 deletions

View file

@ -405,10 +405,10 @@ class Player{
$X = $this->entity->x >> 4;
$Z = $this->entity->z >> 4;
$this->chunksOrder = [];
$startX = $this->generator === 1 ? $X - 4 : 0;
$stopX = $this->generator === 1 ? $X + 4 : 15;
$startZ = $this->generator === 1 ? $X - 4 : 0;
$stopZ = $this->generator === 1 ? $X + 4 : 15;
$startX = $this->generator === 1 ? $X - 8 : 0;
$stopX = $this->generator === 1 ? $X + 8 : 15;
$startZ = $this->generator === 1 ? $Z - 8 : 0;
$stopZ = $this->generator === 1 ? $Z + 8 : 15;
for($x = $startX; $x <= $stopX; ++$x){
for($z = $startZ; $z <= $stopZ; ++$z){
$d = $x . ":" . $z;
@ -1476,6 +1476,7 @@ class Player{
}
$this->sendSettings();
//$this->teleport($pos);
//$this->orderChunks();
$this->server->schedule(50, array($this, "orderChunks"), array(), true);
$this->getNextChunk($this->level);
$this->sendInventory();

View file

@ -11,7 +11,7 @@ define("VIEWER", 3);
define("SPECTATOR", 3);
//Players
define("MAX_CHUNK_RATE", 5);
define("MAX_CHUNK_RATE", 2);
define("PLAYER_MAX_QUEUE", 1024);
define("PLAYER_SURVIVAL_SLOTS", 36);