mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
RiverBiome: don't generate grass underwater
This commit is contained in:
parent
17607b8116
commit
610b7bd8b0
@ -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 RiverBiome extends GrassyBiome{
|
class RiverBiome extends NormalBiome{
|
||||||
|
|
||||||
public function __construct(){
|
public function __construct(){
|
||||||
parent::__construct();
|
$this->setGroundCover([
|
||||||
|
BlockFactory::get(Block::DIRT),
|
||||||
|
BlockFactory::get(Block::DIRT),
|
||||||
|
BlockFactory::get(Block::DIRT),
|
||||||
|
BlockFactory::get(Block::DIRT),
|
||||||
|
BlockFactory::get(Block::DIRT)
|
||||||
|
]);
|
||||||
|
|
||||||
$tallGrass = new TallGrass();
|
$tallGrass = new TallGrass();
|
||||||
$tallGrass->setBaseAmount(5);
|
$tallGrass->setBaseAmount(5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user