Skip to content

Commit

Permalink
fix 1.21.4 datagen
Browse files Browse the repository at this point in the history
  • Loading branch information
Jab125 committed Dec 27, 2024
1 parent 24c8201 commit 0d71b4c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ public void applyTo(RunConfigSettings settings, ConfigValue.Resolver configValue
settings.getEnvironmentVariables().putIfAbsent(key, resolved);
});

if (this.name.equals("dataClient") || this.name.equals("dataServer")) {
for (ConfigValue arg : args) {
settings.programArg(arg.resolve(configValueResolver));
}
}

// Add MOD_CLASSES, this is something that ForgeGradle does
settings.getEnvironmentVariables().computeIfAbsent("MOD_CLASSES", $ -> ConfigValue.of("{source_roots}").resolve(configValueResolver));
}
Expand Down

0 comments on commit 0d71b4c

Please sign in to comment.