tweaked how repair materials are calculated
@@ -91,8 +91,10 @@ public class ItemUpgradeRegistry {
}
public void registerRepairDefinition(RepairDefinition definition) {
+ if (!repairMap.containsKey(definition.moduleVariant)) {
repairMap.put(definition.moduleVariant, definition);
}
+ }
public RepairDefinition getRepairDefinition(String moduleVariant) {
return repairMap.get(moduleVariant);
