mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
how didnt i notice it?
This commit is contained in:
parent
cacfa42413
commit
d85814e036
2 changed files with 6 additions and 5 deletions
|
|
@ -405,10 +405,10 @@ class Player{
|
||||||
$X = $this->entity->x >> 4;
|
$X = $this->entity->x >> 4;
|
||||||
$Z = $this->entity->z >> 4;
|
$Z = $this->entity->z >> 4;
|
||||||
$this->chunksOrder = [];
|
$this->chunksOrder = [];
|
||||||
$startX = $this->generator === 1 ? $X - 4 : 0;
|
$startX = $this->generator === 1 ? $X - 8 : 0;
|
||||||
$stopX = $this->generator === 1 ? $X + 4 : 15;
|
$stopX = $this->generator === 1 ? $X + 8 : 15;
|
||||||
$startZ = $this->generator === 1 ? $X - 4 : 0;
|
$startZ = $this->generator === 1 ? $Z - 8 : 0;
|
||||||
$stopZ = $this->generator === 1 ? $X + 4 : 15;
|
$stopZ = $this->generator === 1 ? $Z + 8 : 15;
|
||||||
for($x = $startX; $x <= $stopX; ++$x){
|
for($x = $startX; $x <= $stopX; ++$x){
|
||||||
for($z = $startZ; $z <= $stopZ; ++$z){
|
for($z = $startZ; $z <= $stopZ; ++$z){
|
||||||
$d = $x . ":" . $z;
|
$d = $x . ":" . $z;
|
||||||
|
|
@ -1476,6 +1476,7 @@ class Player{
|
||||||
}
|
}
|
||||||
$this->sendSettings();
|
$this->sendSettings();
|
||||||
//$this->teleport($pos);
|
//$this->teleport($pos);
|
||||||
|
//$this->orderChunks();
|
||||||
$this->server->schedule(50, array($this, "orderChunks"), array(), true);
|
$this->server->schedule(50, array($this, "orderChunks"), array(), true);
|
||||||
$this->getNextChunk($this->level);
|
$this->getNextChunk($this->level);
|
||||||
$this->sendInventory();
|
$this->sendInventory();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ define("VIEWER", 3);
|
||||||
define("SPECTATOR", 3);
|
define("SPECTATOR", 3);
|
||||||
|
|
||||||
//Players
|
//Players
|
||||||
define("MAX_CHUNK_RATE", 5);
|
define("MAX_CHUNK_RATE", 2);
|
||||||
define("PLAYER_MAX_QUEUE", 1024);
|
define("PLAYER_MAX_QUEUE", 1024);
|
||||||
|
|
||||||
define("PLAYER_SURVIVAL_SLOTS", 36);
|
define("PLAYER_SURVIVAL_SLOTS", 36);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue