earthtunnel again (#991)

## Misc. Changes
* change isOre in earthtunnel back to a switch statement but properly implemented
This commit is contained in:
Benford Whitaker 2019-06-23 19:55:58 -04:00 committed by Christopher Martin
parent f311305720
commit 864f67ef37

View file

@ -160,25 +160,19 @@ public class EarthTunnel extends EarthAbility {
} }
private boolean isOre(final Block block) { private boolean isOre(final Block block) {
if (block.getType() == Material.IRON_ORE) { switch (block.getType()) {
return true; case COAL_ORE:
} else if (block.getType() == Material.GOLD_ORE) { case IRON_ORE:
return true; case GOLD_ORE:
} else if (block.getType() == Material.DIAMOND_ORE) { case LAPIS_ORE:
return true; case REDSTONE_ORE:
} else if (block.getType() == Material.REDSTONE_ORE) { case DIAMOND_ORE:
return true; case EMERALD_ORE:
} else if (block.getType() == Material.COAL_ORE) { case NETHER_QUARTZ_ORE:
return true; return true;
} else if (block.getType() == Material.EMERALD_ORE) { default:
return true; return false;
} else if (block.getType() == Material.LAPIS_ORE) {
return true;
} else if (block.getType() == Material.NETHER_QUARTZ_ORE) {
return true;
} }
return false;
} }
@Override @Override