mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Update NormalGenerator.php
fixed grass generation
This commit is contained in:
parent
df16876da4
commit
62e47bab13
1 changed files with 2 additions and 1 deletions
|
|
@ -87,7 +87,8 @@ class NormalGenerator implements NewLevelGenerator{
|
||||||
for($z = 0; $z < 16; ++$z){
|
for($z = 0; $z < 16; ++$z){
|
||||||
for($x = 0; $x < 16; ++$x){
|
for($x = 0; $x < 16; ++$x){
|
||||||
$i = ($z << 4) + $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){
|
for($y = $startY; $y < $endY; ++$y){
|
||||||
$diff = $height - $y;
|
$diff = $height - $y;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue