Fix compile error

This commit is contained in:
mathias 2019-08-05 18:37:32 +03:00
parent 192be7c779
commit 69ee352565

View file

@ -56,10 +56,9 @@ class BlockPhysics implements Listener {
} else if (material == Material.WATER ||
material == Material.LAVA) {
final Block block = event.getBlock();
try {
if (block.getBlockData() instanceof Levelled) {
final Levelled levelledBlock = (Levelled) block.getBlockData();
} catch (Exception exception) {
}
if (levelledBlock.getLevel() <= 7) {
if (block.getRelative(BlockFace.UP).getType() != material) {
@ -92,6 +91,7 @@ class BlockPhysics implements Listener {
event.setCancelled(true);
}
}
}
} else if (main.nonSolidWallMountedBlockList.contains(material)) {
final Block block = event.getBlock();
final World world = block.getWorld();