File tree Expand file tree Collapse file tree 2 files changed +26
-14
lines changed Expand file tree Collapse file tree 2 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -95,13 +95,19 @@ pub async fn modrinth(
95
95
}
96
96
97
97
if let Some ( donation_urls) = project. donation_urls {
98
- println ! (
99
- "Consider supporting the mod creator on {}" ,
100
- donation_urls
101
- . iter( )
102
- . map( |this| format!( "{} ({})" , this. platform. bold( ) , this. url. blue( ) . underline( ) ) )
103
- . format( " or " )
104
- ) ;
98
+ if !donation_urls. is_empty ( ) {
99
+ println ! (
100
+ "Consider supporting the mod creator on {}" ,
101
+ donation_urls
102
+ . iter( )
103
+ . map( |this| format!(
104
+ "{} ({})" ,
105
+ this. platform. bold( ) ,
106
+ this. url. blue( ) . underline( )
107
+ ) )
108
+ . format( " or " )
109
+ ) ;
110
+ }
105
111
}
106
112
107
113
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -91,13 +91,19 @@ pub async fn modrinth(
91
91
) ;
92
92
}
93
93
if let Some ( donation_urls) = project. donation_urls {
94
- println ! (
95
- "Consider supporting the mod creator on {}" ,
96
- donation_urls
97
- . iter( )
98
- . map( |this| format!( "{} ({})" , this. platform. bold( ) , this. url. blue( ) . underline( ) ) )
99
- . format( ", " )
100
- ) ;
94
+ if !donation_urls. is_empty ( ) {
95
+ println ! (
96
+ "Consider supporting the mod creator on {}" ,
97
+ donation_urls
98
+ . iter( )
99
+ . map( |this| format!(
100
+ "{} ({})" ,
101
+ this. platform. bold( ) ,
102
+ this. url. blue( ) . underline( )
103
+ ) )
104
+ . format( ", " )
105
+ ) ;
106
+ }
101
107
}
102
108
config. modpacks . push ( Modpack {
103
109
name : project. title ,
You can’t perform that action at this time.
0 commit comments