Skip to content

Commit

Permalink
Support newer versions of MinecraftForge 1.20.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Oct 24, 2023
1 parent c8599e7 commit 329bd92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public void applyTo(RunConfigSettings settings, ConfigValue.Resolver configValue

settings.vmArgs(CollectionUtil.map(jvmArgs, value -> value.resolve(configValueResolver)));

// Add MOD_CLASSES, this is something that ForgeGradle does
env.computeIfAbsent("MOD_CLASSES", $ -> ConfigValue.of("{source_roots}"));

env.forEach((key, value) -> {
String resolved = value.resolve(configValueResolver);
settings.getEnvironmentVariables().putIfAbsent(key, resolved);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private void initPatchedFiles() {
minecraftPatchedSrgJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-srg-patched.jar");
minecraftPatchedSrgAtJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-srg-at-patched.jar");
minecraftPatchedJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-patched.jar");
minecraftClientExtra = forgeWorkingDir.resolve("forge-client-extra.jar");
minecraftClientExtra = forgeWorkingDir.resolve("client-extra.jar");
}

private void cleanAllCache() throws IOException {
Expand Down

0 comments on commit 329bd92

Please sign in to comment.