Added default cases to switch/case statements

This commit is contained in:
Grant
2012-12-24 12:35:17 -05:00
parent c4766ad3fb
commit f4e7e6c74a
3 changed files with 12 additions and 0 deletions

View File

@ -79,6 +79,8 @@ public class GreenThumbTimer implements Runnable {
this.block.setData((byte) ((this.block.getData() ^ ((byte) 0xc)) | ((byte) 4)));
}
break;
default:
break;
}
}
}

View File

@ -422,6 +422,8 @@ public class Herbalism {
case NETHER_WARTS:
hasSeeds = inventory.contains(Material.NETHER_STALK);
break;
default:
break;
}
int randomChance = 1500;
@ -459,6 +461,8 @@ public class Herbalism {
Misc.randomDropItems(location, new ItemStack(Material.NETHER_STALK), 50, 2);
inventory.removeItem(new ItemStack(Material.NETHER_STALK));
break;
default:
break;
}
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new GreenThumbTimer(block, profile, type), 1);