Implemented shore map / New blocks / Bugfixes
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user