forked from kaboomserver/extras
Fix compile error
This commit is contained in:
parent
192be7c779
commit
69ee352565
1 changed files with 26 additions and 26 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue