diff --git a/src/main/java/net/fabricmc/loom/configuration/providers/forge/ForgeRunTemplate.java b/src/main/java/net/fabricmc/loom/configuration/providers/forge/ForgeRunTemplate.java index ce01ce1c5..bd55c6012 100644 --- a/src/main/java/net/fabricmc/loom/configuration/providers/forge/ForgeRunTemplate.java +++ b/src/main/java/net/fabricmc/loom/configuration/providers/forge/ForgeRunTemplate.java @@ -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)); }