mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 18:43:43 +01:00 
			
		
		
		
	Revert regression, restoring material based salvage permissions (#5130)
* Revert regression. Fixes salvage permissions by material type --------- Signed-off-by: Momshroom <Momshroom@gmail.com>
This commit is contained in:
		@@ -78,6 +78,17 @@ public class SalvageManager extends SkillManager {
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Permissions checks on material and item types
 | 
			
		||||
        if (!Permissions.salvageItemType(player, salvageable.getSalvageItemType())) {
 | 
			
		||||
            NotificationManager.sendPlayerInformation(player, NotificationType.NO_PERMISSION, "mcMMO.NoPermission");
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!Permissions.salvageMaterialType(player, salvageable.getSalvageMaterialType())) {
 | 
			
		||||
            NotificationManager.sendPlayerInformation(player, NotificationType.NO_PERMISSION, "mcMMO.NoPermission");
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /*int skillLevel = getSkillLevel();*/
 | 
			
		||||
        int minimumSalvageableLevel = salvageable.getMinimumLevel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user