Remove withDisallowUnsafeRead from PaperweightUserExtension#minecraftVersion

This is ok to read during configuration, as long as it's after the dev bundle dependency is set.
This commit is contained in:
Jason Penilla 2024-04-30 11:00:25 -07:00
parent 6495ae0a8d
commit b26c85b988
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -81,5 +81,5 @@ abstract class PaperweightUserExtension(
*/
val minecraftVersion: Provider<String> = objects.property<String>().value(
setup.map { it.minecraftVersion }
).withDisallowChanges().withDisallowUnsafeRead()
).withDisallowChanges()
}