Fix for Blast Mining XP (hopefully)

This commit is contained in:
nossr50 2012-03-01 14:02:23 -08:00
parent 415786d67e
commit 6d883821a8

View File

@ -136,7 +136,6 @@ public class BlastMining{
List<Block> debris = new ArrayList<Block>(); List<Block> debris = new ArrayList<Block>();
List<Block> xp = new ArrayList<Block>(); List<Block> xp = new ArrayList<Block>();
Iterator<Block> xpGain = xp.iterator();
while(iterator.hasNext()) while(iterator.hasNext())
{ {
@ -187,6 +186,8 @@ 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();
while(xpGain.hasNext()) while(xpGain.hasNext())
{ {
blastMiningXP(player, xpGain.next(), plugin); blastMiningXP(player, xpGain.next(), plugin);