Skip to content

Commit

Permalink
Version 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
oggehej committed Jun 27, 2015
1 parent 0e2c812 commit bd489b9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/com/creeperevents/oggehej/obsidianbreaker/BlockListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,9 @@ private void explodeBlock(Location loc, Location source, EntityType explosive) {
isLiquid = true;
break;
}
} catch(Exception e1) {
try {
BlockIterator it = new BlockIterator(source.getWorld(), source.toVector(), v, 0, (int) Math.floor(source.distance(loc)));
while(it.hasNext())
if(it.next().isLiquid()) {
isLiquid = true;
break;
}
} catch(Exception e2) {}
} catch(Exception e) {
if(source.getBlock().isLiquid())
isLiquid = true;
}

float liquidDivider = (float) plugin.getConfig().getDouble("LiquidMultiplier");
Expand Down

0 comments on commit bd489b9

Please sign in to comment.