|  | @@ -1,5 +1,6 @@
 | 
	
		
			
				|  |  |  package com.gmail.nossr50.skills.repair.repairables;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import com.gmail.nossr50.datatypes.items.ItemMatch;
 | 
	
		
			
				|  |  |  import org.bukkit.Material;
 | 
	
		
			
				|  |  |  import org.bukkit.inventory.ItemStack;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -7,7 +8,7 @@ import java.util.HashMap;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  public class RepairableManager {
 | 
	
		
			
				|  |  | -    private HashMap<Material, Repairable> repairables;
 | 
	
		
			
				|  |  | +    private HashMap<ItemMatch<?>, Repairable> repairables;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public RepairableManager(List<Repairable> repairablesCollection) {
 | 
	
		
			
				|  |  |          this.repairables = new HashMap<>(repairablesCollection.size());
 | 
	
	
		
			
				|  | @@ -15,8 +16,7 @@ public class RepairableManager {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public void registerRepairable(Repairable repairable) {
 | 
	
		
			
				|  |  | -        Material item = repairable.getItem().getType();
 | 
	
		
			
				|  |  | -        repairables.put(item, repairable);
 | 
	
		
			
				|  |  | +        repairables.put(repairable.getItemMatch(), repairable);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public void registerRepairables(List<Repairable> repairables) {
 | 
	
	
		
			
				|  | @@ -25,6 +25,16 @@ public class RepairableManager {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  | +    //TODO: Make these use item matching
 | 
	
		
			
				|  |  |      public boolean isRepairable(Material type) {
 | 
	
		
			
				|  |  |          return repairables.containsKey(type);
 | 
	
		
			
				|  |  |      }
 |