Flat: remove useless field

This commit is contained in:
Dylan K. Taylor 2020-08-06 12:58:08 +01:00
parent aa682a865e
commit de9856151a

View File

@ -47,8 +47,6 @@ class Flat extends Generator{
*/ */
private $structure; private $structure;
/** @var int */ /** @var int */
private $floorLevel;
/** @var int */
private $biome; private $biome;
/** @var string */ /** @var string */
private $preset; private $preset;
@ -128,8 +126,6 @@ class Flat extends Generator{
$options = $preset[3] ?? ""; $options = $preset[3] ?? "";
$this->structure = self::parseLayers($blocks); $this->structure = self::parseLayers($blocks);
$this->floorLevel = count($this->structure);
//TODO: more error checking //TODO: more error checking
preg_match_all('#(([0-9a-z_]{1,})\(?([0-9a-z_ =:]{0,})\)?),?#', $options, $matches); preg_match_all('#(([0-9a-z_]{1,})\(?([0-9a-z_ =:]{0,})\)?),?#', $options, $matches);
foreach($matches[2] as $i => $option){ foreach($matches[2] as $i => $option){