Skip to content

Commit

Permalink
don't generate surface blocks one block below sea level
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMatrix committed Apr 19, 2020
1 parent e45f86e commit dc8209c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void decorate(PRandom random, IChunk chunk, int x, int z) {
PLACE:
if (!placed) {
placed = true;
if (y + 1 >= this.seaLevel) {
if (y + 1 > this.seaLevel) {
if (y < 255 && this.cover >= 0) {
chunk.setBlockRuntimeIdUnsafe(x, y + 1, z, 0, this.cover);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void decorate(PRandom random, IChunk chunk, int x, int z) {
if (!placed) {
placed = true;
if (y <= max) {
if (y + 1 >= this.seaLevel) {
if (y + 1 > this.seaLevel) {
if (y < 255 && this.cover >= 0) {
chunk.setBlockRuntimeIdUnsafe(x, y + 1, z, 0, this.cover);
}
Expand Down

0 comments on commit dc8209c

Please sign in to comment.