mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
When in doubt use a for loop
This commit is contained in:
parent
72bfe63ebf
commit
592382a5d3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user