mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
OceanBiome: don't inherit from GrassyBiome, change ground cover to gravel
This commit is contained in:
parent
e867427f71
commit
4b221c0601
@ -23,12 +23,20 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace pocketmine\level\biome;
|
namespace pocketmine\level\biome;
|
||||||
|
|
||||||
|
use pocketmine\block\Block;
|
||||||
|
use pocketmine\block\BlockFactory;
|
||||||
use pocketmine\level\generator\populator\TallGrass;
|
use pocketmine\level\generator\populator\TallGrass;
|
||||||
|
|
||||||
class OceanBiome extends GrassyBiome{
|
class OceanBiome extends NormalBiome{
|
||||||
|
|
||||||
public function __construct(){
|
public function __construct(){
|
||||||
parent::__construct();
|
$this->setGroundCover([
|
||||||
|
BlockFactory::get(Block::GRAVEL),
|
||||||
|
BlockFactory::get(Block::GRAVEL),
|
||||||
|
BlockFactory::get(Block::GRAVEL),
|
||||||
|
BlockFactory::get(Block::GRAVEL),
|
||||||
|
BlockFactory::get(Block::GRAVEL)
|
||||||
|
]);
|
||||||
|
|
||||||
$tallGrass = new TallGrass();
|
$tallGrass = new TallGrass();
|
||||||
$tallGrass->setBaseAmount(5);
|
$tallGrass->setBaseAmount(5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user