Fix restore nature removing top level of liquids (#1066)

This commit is contained in:
FreeMonoid 2020-10-24 05:41:46 +03:00 committed by GitHub
parent 03074bf934
commit 746f10449d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -611,7 +611,7 @@ class RestoreNatureProcessingTask implements Runnable
{ {
for (int z = 1; z < snapshots[0][0].length - 1; z++) for (int z = 1; z < snapshots[0][0].length - 1; z++)
{ {
for (int y = this.seaLevel - 1; y < snapshots[0].length - 1; y++) for (int y = this.seaLevel; y < snapshots[0].length - 1; y++)
{ {
BlockSnapshot block = snapshots[x][y][z]; BlockSnapshot block = snapshots[x][y][z];
if (block.typeId == Material.WATER || block.typeId == Material.LAVA) if (block.typeId == Material.WATER || block.typeId == Material.LAVA)