This repository was archived by the owner on Dec 30, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/xyz/deathsgun/modmanager/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222import org .jetbrains .annotations .NotNull ;
2323import org .jetbrains .annotations .Nullable ;
2424import xyz .deathsgun .modmanager .ModManager ;
25- import xyz .deathsgun .modmanager .api .manipulation .TaskCallback ;
2625import xyz .deathsgun .modmanager .api .manipulation .NetworkTask ;
26+ import xyz .deathsgun .modmanager .api .manipulation .TaskCallback ;
2727import xyz .deathsgun .modmanager .api .mod .SummarizedMod ;
2828
2929import java .io .InputStream ;
3030import java .net .URI ;
3131import java .net .http .HttpClient ;
3232import java .net .http .HttpRequest ;
3333import java .net .http .HttpResponse ;
34+ import java .util .Locale ;
3435
3536public class IconDownloadTask extends NetworkTask {
3637
@@ -56,7 +57,7 @@ protected void execute() throws Exception {
5657 }
5758 debug ("Reading icon for {}" , subject .slug ());
5859 NativeImage image = NativeImage .read (response .body ());
59- Identifier iconLocation = new Identifier ("modmanager" , subject .slug ( ) + "_icon" );
60+ Identifier iconLocation = new Identifier ("modmanager" , subject .id (). toLowerCase ( Locale . ROOT ) + "_icon" );
6061 ModManager .getIconManager ().registerIcon (subject .id (), iconLocation , image );
6162 debug ("Finished downloading icon for {}" , subject .slug ());
6263 }
You can’t perform that action at this time.
0 commit comments