Skip to content

Commit

Permalink
Fixing #11, console spamming
Browse files Browse the repository at this point in the history
  • Loading branch information
Ad5001 committed May 11, 2017
1 parent 5362a4c commit f54139c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Ad5001/BetterGen/populator/RavinePopulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function populate(ChunkManager $level, $chunkX, $chunkZ, Random $random)
$x += $random->nextRange(0 + $diffX, 2 + $diffX ) - 1;
$y += $random->nextRange(0, 2 ) - 1;
$z += $random->nextRange(0 + $diffZ, 2 + $diffZ ) - 1;
$heigth += $random->nextRange(0, 2 ) - 1;
$height += $random->nextRange(0, 2 ) - 1;
$length += $random->nextRange(0, 2 ) - 1;
}
}
Expand Down Expand Up @@ -96,6 +96,8 @@ protected function getHighestWorkableBlock($x, $z) {
* @param $random pocketmine\utils\Random
*/
protected function buildRavinePart($x, $y, $z, $height, $length, Random $random) {
$xBounded = 0;
$zBounded = 0;
for($xx = $x - $length; $xx <= $x + $length; $xx ++) {
for($yy = $y; $yy <= $y + $height; $yy ++) {
for($zz = $z - $length; $zz <= $z + $length; $zz ++) {
Expand Down
2 changes: 1 addition & 1 deletion src/Ad5001/BetterGen/utils/BuildingUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function bottom(ChunkManager $level, Vector3 $pos1, Vector3 $pos2,
* @param $block pocketmine\block\Block
* @return void
*/
public function buildRandom(ChunkManager $level, Vector3 $pos, Vector3 $infos, Random $random, Block $block) {
public static function buildRandom(ChunkManager $level, Vector3 $pos, Vector3 $infos, Random $random, Block $block) {
$xBounded = $random->nextBoundedInt(3 ) - 1;
$yBounded = $random->nextBoundedInt(3 ) - 1;
$zBounded = $random->nextBoundedInt(3 ) - 1;
Expand Down

0 comments on commit f54139c

Please sign in to comment.