@@ -167,7 +167,7 @@ public static Task<?> getInstallTask(Profile profile, ServerModpackManifest mani
167167
168168 return new ServerModpackRemoteInstallTask (profile .getDependency (), manifest , name )
169169 .whenComplete (Schedulers .defaultScheduler (), success , failure )
170- .withStagesHint ( Arrays . asList ( "hmcl.modpack" , "hmcl.modpack.download" ) );
170+ .withStagesHints ( "hmcl.modpack" , "hmcl.modpack.download" );
171171 }
172172
173173 public static boolean isExternalGameNameConflicts (String name ) {
@@ -211,24 +211,24 @@ public static Task<?> getInstallTask(Profile profile, Path zipFile, String name,
211211 return modpack .getInstallTask (profile .getDependency (), zipFile , name , iconUrl )
212212 .whenComplete (Schedulers .defaultScheduler (), success , failure )
213213 .thenComposeAsync (createMultiMCPostInstallTask (profile , (MultiMCInstanceConfiguration ) modpack .getManifest (), name ))
214- .withStagesHint ( List . of ( "hmcl.modpack" , "hmcl.modpack.download" ) );
214+ .withStagesHints ( "hmcl.modpack" , "hmcl.modpack.download" );
215215 else if (modpack .getManifest () instanceof McbbsModpackManifest )
216216 return modpack .getInstallTask (profile .getDependency (), zipFile , name , iconUrl )
217217 .whenComplete (Schedulers .defaultScheduler (), success , failure )
218218 .thenComposeAsync (createMcbbsPostInstallTask (profile , (McbbsModpackManifest ) modpack .getManifest (), name ))
219- .withStagesHint ( List . of ( "hmcl.modpack" , "hmcl.modpack.download" ) );
219+ .withStagesHints ( "hmcl.modpack" , "hmcl.modpack.download" );
220220 else
221221 return modpack .getInstallTask (profile .getDependency (), zipFile , name , iconUrl )
222222 .whenComplete (Schedulers .javafx (), success , failure )
223- .withStagesHint ( List . of ( "hmcl.modpack" , "hmcl.modpack.download" ) );
223+ .withStagesHints ( "hmcl.modpack" , "hmcl.modpack.download" );
224224 }
225225
226226 public static Task <Void > getUpdateTask (Profile profile , ServerModpackManifest manifest , Charset charset , String name , ModpackConfiguration <?> configuration ) throws UnsupportedModpackException {
227227 switch (configuration .getType ()) {
228228 case ServerModpackRemoteInstallTask .MODPACK_TYPE :
229229 return new ModpackUpdateTask (profile .getRepository (), name , new ServerModpackRemoteInstallTask (profile .getDependency (), manifest , name ))
230230 .thenComposeAsync (profile .getRepository ().refreshVersionsAsync ())
231- .withStagesHint ( Arrays . asList ( "hmcl.modpack" , "hmcl.modpack.download" ) );
231+ .withStagesHints ( "hmcl.modpack" , "hmcl.modpack.download" );
232232 default :
233233 throw new UnsupportedModpackException ();
234234 }
0 commit comments