Ver Fonte

Fix for Blast Mining XP (hopefully)

nossr50 há 13 anos atrás
pai
commit
6d883821a8
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/main/java/com/gmail/nossr50/skills/BlastMining.java

+ 2 - 1
src/main/java/com/gmail/nossr50/skills/BlastMining.java

@@ -136,7 +136,6 @@ public class BlastMining{
 		List<Block> debris = new ArrayList<Block>();
 		
 		List<Block> xp = new ArrayList<Block>();
-		Iterator<Block> xpGain = xp.iterator();
 		
 		while(iterator.hasNext())
 		{
@@ -187,6 +186,8 @@ public class BlastMining{
 		if(skillLevel >= 1000)
 			xp = explosionYields(ores, debris, yield, .70f, .30f, location, 3);
 		
+		Iterator<Block> xpGain = xp.iterator();
+		
 		while(xpGain.hasNext())
 		{
 			blastMiningXP(player, xpGain.next(), plugin);