mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Flat: clean up more garbage
This commit is contained in:
@ -37,7 +37,14 @@ class Flat extends Generator{
|
|||||||
private $chunk;
|
private $chunk;
|
||||||
/** @var Populator[] */
|
/** @var Populator[] */
|
||||||
private $populators = [];
|
private $populators = [];
|
||||||
private $structure, $chunks, $options, $floorLevel, $preset;
|
/** @var int[][] */
|
||||||
|
private $structure;
|
||||||
|
/** @var int */
|
||||||
|
private $floorLevel;
|
||||||
|
/** @var mixed[] */
|
||||||
|
private $options;
|
||||||
|
/** @var string */
|
||||||
|
private $preset;
|
||||||
|
|
||||||
public function getSettings() : array{
|
public function getSettings() : array{
|
||||||
return $this->options;
|
return $this->options;
|
||||||
@ -92,8 +99,6 @@ class Flat extends Generator{
|
|||||||
$options = (string) ($preset[3] ?? "");
|
$options = (string) ($preset[3] ?? "");
|
||||||
$this->structure = self::parseLayers($blocks);
|
$this->structure = self::parseLayers($blocks);
|
||||||
|
|
||||||
$this->chunks = [];
|
|
||||||
|
|
||||||
$this->floorLevel = $y = count($this->structure);
|
$this->floorLevel = $y = count($this->structure);
|
||||||
|
|
||||||
$this->chunk = new Chunk(0, 0);
|
$this->chunk = new Chunk(0, 0);
|
||||||
|
Reference in New Issue
Block a user