Skip to content

NeoModDevGradleModelBuilderImpl: Only get version if not in vanilla mode#2594

Merged
Earthcomputer merged 1 commit intominecraft-dev:devfrom
ByThePowerOfScience:patch-1
Mar 21, 2026
Merged

NeoModDevGradleModelBuilderImpl: Only get version if not in vanilla mode#2594
Earthcomputer merged 1 commit intominecraft-dev:devfrom
ByThePowerOfScience:patch-1

Conversation

@ByThePowerOfScience
Copy link
Contributor

@ByThePowerOfScience ByThePowerOfScience commented Mar 21, 2026

ModDevGradle, for whatever reason, throws if you get the version when it's in vanilla mode. Since MCDev currently fetches the version no matter what, this makes it impossible to use vanilla projects with MCDev.

This PR makes it check the NeoForm version first (which is only there if it's a vanilla project), then only if it is confirmed to not be a vanilla project gets the NeoForge version.

I'm also making a PR for MDG to not throw an exception when getting the version, because that's a huge contract violation, but that is not guaranteed to go through. In the meantime, this will let people work on vanilla projects.

Fixes #2570

@Earthcomputer Earthcomputer merged commit 95c8829 into minecraft-dev:dev Mar 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to configure MDG vanilla projects

2 participants