Skip to content

Commit 65912ea

Browse files
fix incorrect variable name
1 parent 74b3b48 commit 65912ea

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/cam72cam/universalmodcore/Config.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public Config(JsonObject data, String mcVersion, Loader brand) throws GitAPIExce
9898
File temp = null;
9999
if (umc.path == null) {
100100
temp = Files.createTempDirectory("umc-loader").toFile();
101-
Util.gitClone("https://github.com/TeamOpenIndustry/UniversalModCore.git", mcVersion, temp, false);
101+
Util.gitClone("https://github.com/TeamOpenIndustry/UniversalModCore.git", minecraftLoader, temp, false);
102102
path = temp;
103103
} else {
104104
path = Paths.get(System.getProperty("user.dir"), umc.path).toFile();
@@ -127,7 +127,7 @@ public Config(JsonObject data, String mcVersion, Loader brand) throws GitAPIExce
127127

128128

129129
if (umc.path != null && !umc.path.isEmpty()) {
130-
File jar = new File(umc.path, String.format("build/libs/UniversalModCore-%s-%s.jar", mcVersion, version));
130+
File jar = new File(umc.path, String.format("build/libs/UniversalModCore-%s-%s.jar", minecraftLoader, version));
131131
if (!jar.exists()) {
132132
throw new RuntimeException(String.format("Unable to find UMC jar: %s", jar));
133133
}
@@ -136,8 +136,8 @@ public Config(JsonObject data, String mcVersion, Loader brand) throws GitAPIExce
136136
vars.put("UMC_FILE", jar.getPath());
137137
} else {
138138
vars.put("UMC_REPO", "repositories { maven { url = \"https://teamopenindustry.cc/maven\" }}");
139-
vars.put("UMC_DEPENDENCY", String.format("'cam72cam.universalmodcore:UniversalModCore:%s-%s'", mcVersion, version));
140-
vars.put("UMC_DOWNLOAD", String.format("https://teamopenindustry.cc/maven/cam72cam/universalmodcore/UniversalModCore/%s-%s/UniversalModCore-%s-%s.jar", mcVersion, version, mcVersion, version));
139+
vars.put("UMC_DEPENDENCY", String.format("'cam72cam.universalmodcore:UniversalModCore:%s-%s'", minecraftLoader, version));
140+
vars.put("UMC_DOWNLOAD", String.format("https://teamopenindustry.cc/maven/cam72cam/universalmodcore/UniversalModCore/%s-%s/UniversalModCore-%s-%s.jar", minecraftLoader, version, minecraftLoader, version));
141141
}
142142

143143
ArrayList<Mod.Dependency> dependencies = new ArrayList<>(mod.dependencies);

0 commit comments

Comments
 (0)