Implemented shore map / New blocks / Bugfixes

This commit is contained in:
Anuken
2019-01-30 13:34:38 -05:00
parent dbf05a1419
commit 209e3f03c1
32 changed files with 1906 additions and 1682 deletions

View File

@@ -90,8 +90,10 @@ public class MapGenerator extends Generator{
int newX = Mathf.clamp((int)(simplex.octaveNoise2D(1, 1, 1.0 / scl, x, y) * distortion + x), 0, data.width()-1);
int newY = Mathf.clamp((int)(simplex.octaveNoise2D(1, 1, 1.0 / scl, x + 9999, y + 9999) * distortion + y), 0, data.height()-1);
if(tile.block() instanceof StaticWall
&& tiles[newX][newY].block() instanceof StaticWall){
if((tile.block() instanceof StaticWall
&& tiles[newX][newY].block() instanceof StaticWall)
|| tile.block() == Blocks.air
|| tiles[newX][newY].block() == Blocks.air){
tile.setBlock(tiles[newX][newY].block());
}