mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Fixed blast mining trying to drop non-items
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
Version 2.2.020
 | 
			
		||||
    (Codebase) Reworked Roll implementation (See notes)
 | 
			
		||||
    (Codebase) Added unit test coverage for Roll
 | 
			
		||||
    Fixed blast mining trying to drop non-items (thanks IAISI)
 | 
			
		||||
    Fixed error spam in mcMMO potion matching logic (see notes)
 | 
			
		||||
    Fixed a bug where Roll was modifying damage unnecessarily
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -204,7 +204,7 @@ public class MiningManager extends SkillManager {
 | 
			
		||||
            if (isDropIllegal(blockState.getType()))
 | 
			
		||||
                continue;
 | 
			
		||||
 | 
			
		||||
            if (Probability.ofPercent(50).evaluate()) {
 | 
			
		||||
            if (blockState.getType().isItem() && Probability.ofPercent(50).evaluate()) {
 | 
			
		||||
                ItemUtils.spawnItem(getPlayer(),
 | 
			
		||||
                        Misc.getBlockCenter(blockState),
 | 
			
		||||
                        new ItemStack(blockState.getType()),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user