Update NormalGenerator.php

fixed grass generation
This commit is contained in:
ArkQuark 2023-02-28 20:57:47 +03:00
parent df16876da4
commit 62e47bab13

View file

@ -87,7 +87,8 @@ class NormalGenerator implements NewLevelGenerator{
for($z = 0; $z < 16; ++$z){
for($x = 0; $x < 16; ++$x){
$i = ($z << 4) + $x;
$height = floor($this->worldHeight + $hills[$i] * 14 + $base[$i] * 7);
$height = $this->worldHeight + $hills[$i] * 14 + $base[$i] * 7;
$height = (int) $height;
for($y = $startY; $y < $endY; ++$y){
$diff = $height - $y;