mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Fixed a bug where Salvage was giving back too many materials
This commit is contained in:
		@@ -7,6 +7,9 @@ Key:
 | 
			
		||||
  ! Change
 | 
			
		||||
  - Removal
 | 
			
		||||
 | 
			
		||||
Version 2.1.6
 | 
			
		||||
    Fixed a bug where Salvage was giving back too many resources
 | 
			
		||||
 | 
			
		||||
Version 2.1.5
 | 
			
		||||
    mcMMO no longer ignores cancelled events relating to the player left or right clicking
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							@@ -2,7 +2,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <groupId>com.gmail.nossr50.mcMMO</groupId>
 | 
			
		||||
    <artifactId>mcMMO</artifactId>
 | 
			
		||||
    <version>2.1.5</version>
 | 
			
		||||
    <version>2.1.6-SNAPSHOT</version>
 | 
			
		||||
    <name>mcMMO</name>
 | 
			
		||||
    <url>https://github.com/mcMMO-Dev/mcMMO</url>
 | 
			
		||||
    <scm>
 | 
			
		||||
 
 | 
			
		||||
@@ -103,8 +103,8 @@ public class SalvageManager extends SkillManager {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        //Amount of materials to salvage based on rank
 | 
			
		||||
        salvageableAmount = getSalvageableAmount();
 | 
			
		||||
        salvageableAmount = Math.min(salvageableAmount, getSalvageableAmount()); // Always get at least something back, if you're capable of salvaging it.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        player.getInventory().setItemInMainHand(new ItemStack(Material.AIR));
 | 
			
		||||
        location.add(0.5, 1, 0.5);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user