mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Fixed BlastMining not checking if blocks had been placed.
This commit is contained in:
		@@ -162,6 +162,7 @@ public class BlastMining{
 | 
			
		||||
				Block temp = iterator2.next();
 | 
			
		||||
				if(Math.random() * 100 < (yield + 10))
 | 
			
		||||
				{
 | 
			
		||||
					if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
						explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
@@ -170,6 +171,7 @@ public class BlastMining{
 | 
			
		||||
				Block temp = iterator3.next();
 | 
			
		||||
				if(Math.random() * 100 < yield)
 | 
			
		||||
				{
 | 
			
		||||
					if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
						explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
@@ -186,6 +188,7 @@ public class BlastMining{
 | 
			
		||||
				Block temp = iterator2.next();
 | 
			
		||||
				if(Math.random() * 100 < (yield + 20))
 | 
			
		||||
				{
 | 
			
		||||
					if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
						explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
@@ -194,6 +197,7 @@ public class BlastMining{
 | 
			
		||||
				Block temp = iterator3.next();
 | 
			
		||||
				if(Math.random() * 100 < yield)
 | 
			
		||||
				{
 | 
			
		||||
					if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
						explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
@@ -210,6 +214,7 @@ public class BlastMining{
 | 
			
		||||
				Block temp = iterator2.next();
 | 
			
		||||
				if(Math.random() * 100 < yield + 20)
 | 
			
		||||
				{
 | 
			
		||||
					if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
						explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
@@ -226,12 +231,16 @@ public class BlastMining{
 | 
			
		||||
				Block temp = iterator2.next();
 | 
			
		||||
				if(Math.random() * 100 < yield + 20)
 | 
			
		||||
				{
 | 
			
		||||
					if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
						explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
					if(Math.random() * 1000 <= skillLevel)
 | 
			
		||||
					{
 | 
			
		||||
						if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
							explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		//Triple Drops
 | 
			
		||||
		if(skillLevel >= 875)
 | 
			
		||||
@@ -244,15 +253,22 @@ public class BlastMining{
 | 
			
		||||
				Block temp = iterator2.next();
 | 
			
		||||
				if(Math.random() * 100 < yield + 20)
 | 
			
		||||
				{
 | 
			
		||||
					if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
						explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
					if(Math.random() * 1000 <= skillLevel || skillLevel > 1000) 
 | 
			
		||||
					{
 | 
			
		||||
						if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
						explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
					}
 | 
			
		||||
					if(Math.random() * 1000 <= skillLevel || skillLevel > 1000)
 | 
			
		||||
					{
 | 
			
		||||
						if(temp.getData() != 5 && plugin.misc.blockWatchList.contains(temp));
 | 
			
		||||
							explosionBlockDrops(temp, event.getLocation());
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	
 | 
			
		||||
	/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user