Skip to content

Commit

Permalink
Merge pull request #154
Browse files Browse the repository at this point in the history
* Remove MCP_MAPPINGS from the generated Neoforge run types
  • Loading branch information
shartte authored Apr 28, 2024
1 parent d66f11c commit 08369c9
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,7 @@ public void runtime(final String neoFormVersion, Directory patches, Directory re
//Note: We can not use a 'configureEach' here, because this causes issues with the config cache.
userdevProfile.runType("client", type -> {
type.getEnvironmentVariables().put("MOD_CLASSES", "{source_roots}");
type.getEnvironmentVariables().put("MCP_MAPPINGS", "{mcp_mappings}");


type.getIsClient().set(true);
type.getIsGameTest().set(true);
type.getSystemProperties().put("neoforge.enableGameTest", "true");
Expand All @@ -557,8 +556,7 @@ public void runtime(final String neoFormVersion, Directory patches, Directory re
});
userdevProfile.runType("server", type -> {
type.getEnvironmentVariables().put("MOD_CLASSES", "{source_roots}");
type.getEnvironmentVariables().put("MCP_MAPPINGS", "{mcp_mappings}");


type.getIsServer().set(true);

type.getArguments().add("--launchTarget");
Expand All @@ -568,8 +566,7 @@ public void runtime(final String neoFormVersion, Directory patches, Directory re
});
userdevProfile.runType("gameTestServer", type -> {
type.getEnvironmentVariables().put("MOD_CLASSES", "{source_roots}");
type.getEnvironmentVariables().put("MCP_MAPPINGS", "{mcp_mappings}");


type.getIsServer().set(true);
type.getIsGameTest().set(true);
type.getSystemProperties().put("neoforge.enableGameTest", "true");
Expand All @@ -583,8 +580,7 @@ public void runtime(final String neoFormVersion, Directory patches, Directory re
});
userdevProfile.runType("data", type -> {
type.getEnvironmentVariables().put("MOD_CLASSES", "{source_roots}");
type.getEnvironmentVariables().put("MCP_MAPPINGS", "{mcp_mappings}");


type.getIsDataGenerator().set(true);

type.getArguments().add("--launchTarget");
Expand Down

0 comments on commit 08369c9

Please sign in to comment.