ENUM all the things!

This commit is contained in:
nossr50 2012-03-01 14:10:50 -08:00
parent 592382a5d3
commit 3945a681a3

View File

@ -244,34 +244,30 @@ public class BlastMining{
if(plugin.misc.blockWatchList.contains(block) || block.getData() == (byte) 5) if(plugin.misc.blockWatchList.contains(block) || block.getData() == (byte) 5)
return; return;
int xp = 0; int xp = 0;
int id = block.getTypeId();
switch (id) { switch (block.getType()) {
//COAL //COAL
case 16: case COAL_ORE:
xp += LoadProperties.mcoal; xp += LoadProperties.mcoal;
break; break;
//GOLD //GOLD
case 14: case GOLD_ORE:
xp += LoadProperties.mgold; xp += LoadProperties.mgold;
break; break;
//DIAMOND //DIAMOND
case 56: case DIAMOND_ORE:
xp += LoadProperties.mdiamond; xp += LoadProperties.mdiamond;
break; break;
//IRON //IRON
case 15: case IRON_ORE:
xp += LoadProperties.miron; xp += LoadProperties.miron;
break; break;
//REDSTONE //REDSTONE
case 73: case REDSTONE_ORE:
xp += LoadProperties.mredstone;
break;
case 74:
xp += LoadProperties.mredstone; xp += LoadProperties.mredstone;
break; break;
//LAPIS //LAPIS
case 21: case LAPIS_ORE:
xp += LoadProperties.mlapis; xp += LoadProperties.mlapis;
break; break;
} }