mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Improved trees, improved inventory transactions, improved snowball/bow usage
This commit is contained in:
@ -33,7 +33,7 @@ class Pond extends Populator{
|
||||
public function populate(ChunkManager $level, $chunkX, $chunkZ, Random $random){
|
||||
if($random->nextRange(0, $this->waterOdd) === 0){
|
||||
$x = $random->nextRange($chunkX << 4, ($chunkX << 4) + 16);
|
||||
$y = $random->nextRange(0, 128);
|
||||
$y = $random->nextBoundedInt(128);
|
||||
$z = $random->nextRange($chunkZ << 4, ($chunkZ << 4) + 16);
|
||||
$pond = new \pocketmine\level\generator\object\Pond($random, new Water());
|
||||
if($pond->canPlaceObject($level, $x, $y, $z)){
|
||||
|
Reference in New Issue
Block a user