Fixed some usages of Block::get()

This commit is contained in:
Dylan K. Taylor
2017-08-21 12:58:35 +01:00
parent 2f3c77c68a
commit 9e54980ded
3 changed files with 20 additions and 17 deletions

View File

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace pocketmine\level\generator\populator;
use pocketmine\block\Block;
use pocketmine\block\BlockFactory;
use pocketmine\block\Water;
use pocketmine\level\ChunkManager;
use pocketmine\math\Vector3;
@ -39,7 +40,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, Block::get(Block::WATER));
$pond = new \pocketmine\level\generator\object\Pond($random, BlockFactory::get(Block::WATER));
if($pond->canPlaceObject($level, $v = new Vector3($x, $y, $z))){
$pond->placeObject($level, $v);
}