Allows AIR to have value

https://github.com/BentoBoxWorld/Level/issues/73
This commit is contained in:
tastybento 2019-08-07 08:07:19 -07:00
parent cb2ea7dc5b
commit 76cfc506fb
1 changed files with 6 additions and 9 deletions

View File

@ -132,17 +132,14 @@ public class CalcIslandLevel {
BlockData blockData = chunk.getBlockData(x, y, z);
int seaHeight = addon.getPlugin().getIWM().getSeaHeight(world);
boolean belowSeaLevel = seaHeight > 0 && y <= seaHeight;
// Air is free
if (!blockData.getMaterial().equals(Material.AIR)) {
// Slabs can be doubled, so check them twice
if (Tag.SLABS.isTagged(blockData.getMaterial())) {
Slab slab = (Slab)blockData;
if (slab.getType().equals(Slab.Type.DOUBLE)) {
checkBlock(blockData, belowSeaLevel);
}
// Slabs can be doubled, so check them twice
if (Tag.SLABS.isTagged(blockData.getMaterial())) {
Slab slab = (Slab)blockData;
if (slab.getType().equals(Slab.Type.DOUBLE)) {
checkBlock(blockData, belowSeaLevel);
}
checkBlock(blockData, belowSeaLevel);
}
checkBlock(blockData, belowSeaLevel);
}
}
}