mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
earthtunnel again (#991)
## Misc. Changes * change isOre in earthtunnel back to a switch statement but properly implemented
This commit is contained in:
parent
f311305720
commit
864f67ef37
1 changed files with 12 additions and 18 deletions
|
@ -160,26 +160,20 @@ public class EarthTunnel extends EarthAbility {
|
|||
}
|
||||
|
||||
private boolean isOre(final Block block) {
|
||||
if (block.getType() == Material.IRON_ORE) {
|
||||
switch (block.getType()) {
|
||||
case COAL_ORE:
|
||||
case IRON_ORE:
|
||||
case GOLD_ORE:
|
||||
case LAPIS_ORE:
|
||||
case REDSTONE_ORE:
|
||||
case DIAMOND_ORE:
|
||||
case EMERALD_ORE:
|
||||
case NETHER_QUARTZ_ORE:
|
||||
return true;
|
||||
} else if (block.getType() == Material.GOLD_ORE) {
|
||||
return true;
|
||||
} else if (block.getType() == Material.DIAMOND_ORE) {
|
||||
return true;
|
||||
} else if (block.getType() == Material.REDSTONE_ORE) {
|
||||
return true;
|
||||
} else if (block.getType() == Material.COAL_ORE) {
|
||||
return true;
|
||||
} else if (block.getType() == Material.EMERALD_ORE) {
|
||||
return true;
|
||||
} else if (block.getType() == Material.LAPIS_ORE) {
|
||||
return true;
|
||||
} else if (block.getType() == Material.NETHER_QUARTZ_ORE) {
|
||||
return true;
|
||||
}
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
|
|
Loading…
Reference in a new issue