mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Changed block construction calls to Block::get()
This commit is contained in:
@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\level\generator\populator;
|
||||
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\block\Water;
|
||||
use pocketmine\level\ChunkManager;
|
||||
use pocketmine\math\Vector3;
|
||||
@ -38,7 +39,7 @@ class Pond extends Populator{
|
||||
$x = $random->nextRange($chunkX << 4, ($chunkX << 4) + 16);
|
||||
$y = $random->nextBoundedInt(128);
|
||||
$z = $random->nextRange($chunkZ << 4, ($chunkZ << 4) + 16);
|
||||
$pond = new \pocketmine\level\generator\object\Pond($random, new Water());
|
||||
$pond = new \pocketmine\level\generator\object\Pond($random, Block::get(Block::WATER));
|
||||
if($pond->canPlaceObject($level, $v = new Vector3($x, $y, $z))){
|
||||
$pond->placeObject($level, $v);
|
||||
}
|
||||
|
Reference in New Issue
Block a user