Skip to content

Commit 9131f13

Browse files
committed
hotfix2
1 parent 4a043ae commit 9131f13

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/falsepattern/lib/FalsePatternLib.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ public static void loadLibrary(String loadingModId, String groupId, String artif
104104
return;
105105
}
106106
val modsDir = new File(CoreLoadingPlugin.mcDir, "mods");
107-
val jarName = String.format("%s%s-%s%s.jar", isMod ? "" : (groupId + "-"), artifactId, preferredVersion, (developerEnvironment && devSuffix != null) ? ("-" + devSuffix) : "");
107+
val mavenJarName = String.format("%s-%s%s.jar", artifactId, preferredVersion, (developerEnvironment && devSuffix != null) ? ("-" + devSuffix) : "");
108+
val jarName = String.format("%s%s", isMod ? "" : (groupId + "-"), mavenJarName);
108109
File file;
109110
if (isMod) {
110111
file = new File(modsDir, jarName);
@@ -131,7 +132,7 @@ public static void loadLibrary(String loadingModId, String groupId, String artif
131132
for (var repo: mavenRepositories) {
132133
try {
133134
if (!repo.endsWith("/")) repo = repo + "/";
134-
val url = new URL(String.format("%s%s/%s/%s/%s", repo, groupId.replace('.', '/'), artifactId, preferredVersion, jarName));
135+
val url = new URL(String.format("%s%s/%s/%s/%s", repo, groupId.replace('.', '/'), artifactId, preferredVersion, mavenJarName));
135136

136137
val connection = (HttpsURLConnection) url.openConnection();
137138
connection.setConnectTimeout(1500);

0 commit comments

Comments
 (0)