mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 02:23:44 +01:00 
			
		
		
		
	Fix potential NPE for salvage
This commit is contained in:
		@@ -2,7 +2,8 @@ Version 2.1.115
 | 
			
		||||
    Fixed an issue with arrows causing exceptions with players not yet having data loaded
 | 
			
		||||
    Spectral arrows are now tracked by mcMMO
 | 
			
		||||
    Use minimum level of salvageable properly
 | 
			
		||||
    Fix axes Critical Strikes default permissions
 | 
			
		||||
    Fix Axes Critical Strikes default permissions ( new fixed permission: mcmmo.ability.axes.criticalstrikes )
 | 
			
		||||
    Fix potential null pointer exception for salvage
 | 
			
		||||
 | 
			
		||||
Version 2.1.114
 | 
			
		||||
    Fix some more locale usages, should aim to further prevent issues with oddball locales
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ public class SalvageManager extends SkillManager {
 | 
			
		||||
 | 
			
		||||
        Salvageable salvageable = mcMMO.getSalvageableManager().getSalvageable(item.getType());
 | 
			
		||||
 | 
			
		||||
        if (item.getItemMeta().isUnbreakable()) {
 | 
			
		||||
        if (item.getItemMeta() != null && item.getItemMeta().isUnbreakable()) {
 | 
			
		||||
            NotificationManager.sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "Anvil.Unbreakable");
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user