Ejemplo n.º 1
0
 public function generateChunk($x, $z)
 {
     if (!isset($this->chunkGenerationQueue[$index = PHP_INT_SIZE === 8 ? ($x & 0xffffffff) << 32 | $z & 0xffffffff : $x . ":" . $z])) {
         $this->chunkGenerationQueue[$index] = true;
         $this->server->getGenerationManager()->requestChunk($this, $x, $z);
     }
 }
Ejemplo n.º 2
0
 public function generateChunk($x, $z)
 {
     if (!isset($this->chunkGenerationQueue["{$x}:{$z}"])) {
         $this->chunkGenerationQueue["{$x}:{$z}"] = true;
         $this->server->getGenerationManager()->requestChunk($this, $x, $z);
     }
 }
Ejemplo n.º 3
0
 public function generateChunk($x, $z)
 {
     if (!isset($this->chunkGenerationQueue[$index = Level::chunkHash($x, $z)])) {
         $this->chunkGenerationQueue[$index] = true;
         $this->server->getGenerationManager()->requestChunk($this, $x, $z);
     }
 }