mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
Flat: remove useless field
This commit is contained in:
parent
aa682a865e
commit
de9856151a
@ -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){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user