From b26c85b988740f03fab066edd1ab1896c00ffa27 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:00:25 -0700 Subject: [PATCH] Remove withDisallowUnsafeRead from PaperweightUserExtension#minecraftVersion This is ok to read during configuration, as long as it's after the dev bundle dependency is set. --- .../io/papermc/paperweight/userdev/PaperweightUserExtension.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUserExtension.kt b/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUserExtension.kt index a852694..028fcc1 100644 --- a/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUserExtension.kt +++ b/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUserExtension.kt @@ -81,5 +81,5 @@ abstract class PaperweightUserExtension( */ val minecraftVersion: Provider = objects.property().value( setup.map { it.minecraftVersion } - ).withDisallowChanges().withDisallowUnsafeRead() + ).withDisallowChanges() }