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)
|
if(skillLevel >= 1000)
|
||||||
xp = explosionYields(ores, debris, yield, .70f, .30f, location, 3);
|
xp = explosionYields(ores, debris, yield, .70f, .30f, location, 3);
|
||||||
|
|
||||||
Iterator<Block> xpGain = xp.iterator();
|
for(Block block : xp)
|
||||||
|
|
||||||
while(xpGain.hasNext())
|
|
||||||
{
|
{
|
||||||
blastMiningXP(player, xpGain.next(), plugin);
|
blastMiningXP(player, block, plugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user