Skip to content

Commit

Permalink
Don't apply this on Neo
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Dec 12, 2023
1 parent 2648db4 commit 8a8bdd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void provide(DependencyInfo dependency) throws Exception {
addDependency(dependency.getDepString() + ":userdev", Constants.Configurations.FORGE_USERDEV);
addDependency(dependency.getDepString() + ":installer", Constants.Configurations.FORGE_INSTALLER);

if (version.getMajorVersion() >= Constants.Forge.MIN_UNION_RELAUNCHER_VERSION) {
if (getExtension().isForge() && version.getMajorVersion() >= Constants.Forge.MIN_UNION_RELAUNCHER_VERSION) {
addDependency(LoomVersions.UNION_RELAUNCHER.mavenNotation(), Constants.Configurations.FORGE_EXTRA);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void applyTo(RunConfigSettings settings, ConfigValue.Resolver configValue

final ForgeProvider forgeProvider = settings.getExtension().getForgeProvider();

if (forgeProvider.getVersion().getMajorVersion() >= Constants.Forge.MIN_UNION_RELAUNCHER_VERSION) {
if (settings.getExtension().isForge() && forgeProvider.getVersion().getMajorVersion() >= Constants.Forge.MIN_UNION_RELAUNCHER_VERSION) {
settings.defaultMainClass(Constants.Forge.UNION_RELAUNCHER_MAIN_CLASS);
settings.property(Constants.Forge.UNION_RELAUNCHER_MAIN_CLASS_PROPERTY, main);
}
Expand Down

0 comments on commit 8a8bdd5

Please sign in to comment.