When in doubt use a for loop

This commit is contained in:
nossr50 2012-03-01 14:09:06 -08:00
parent 72bfe63ebf
commit 592382a5d3

View File

@ -185,11 +185,9 @@ public class BlastMining{
if(skillLevel >= 1000)
xp = explosionYields(ores, debris, yield, .70f, .30f, location, 3);
Iterator<Block> xpGain = xp.iterator();
while(xpGain.hasNext())
for(Block block : xp)
{
blastMiningXP(player, xpGain.next(), plugin);
blastMiningXP(player, block, plugin);
}
}