Skip to content

NeoModDevGradleModelBuilderImpl: Make neoFormVersion check class of property#2601

Merged
Earthcomputer merged 1 commit intominecraft-dev:devfrom
ByThePowerOfScience:patch-1
Apr 2, 2026
Merged

NeoModDevGradleModelBuilderImpl: Make neoFormVersion check class of property#2601
Earthcomputer merged 1 commit intominecraft-dev:devfrom
ByThePowerOfScience:patch-1

Conversation

@ByThePowerOfScience
Copy link
Copy Markdown
Contributor

Seems like fixing #2594 revealed another bug in the existing NeoForm version handling: the previous code called getOrNull on something that wasn't guaranteed to be a Provider.

The problem in question:

groovy.lang.MissingMethodException: No signature of method: java.lang.String.getOrNull() is applicable for argument types: () values: []
	at com.demonwav.mcdev.platform.mcp.gradle.tooling.neomoddev.NeoModDevGradleModelBuilderImpl.buildAll(NeoModDevGradleModelBuilderImpl.groovy:54)

Fixes this by doing the same type-checking for neoFormVersion that we do for neoforgeVersionProp.

…roperty

Fixes "No signature of method: java.lang.String.getOrNull() is applicable for argument types: () values: []"
@Earthcomputer Earthcomputer merged commit 8124072 into minecraft-dev:dev Apr 2, 2026
5 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.

2 participants