diff --git a/gradle.properties b/gradle.properties index d7d028b..04d6c7b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,17 +4,17 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.21-pre1 -yarn_build=3 +minecraft_version=1.21 +yarn_build=7 loader_version=0.15.11 # Mod Properties -mod_version=1.5.1 +mod_version=1.5.2 maven_group=net.mcbrawls mod_id=blueprint # Dependencies -fabric_version=0.99.2+1.21 +fabric_version=0.100.4+1.21 kotlin_version=1.9.24 fabric_kotlin_version=1.10.20+kotlin.1.9.24 diff --git a/src/main/kotlin/net/mcbrawls/blueprint/structure/Blueprint.kt b/src/main/kotlin/net/mcbrawls/blueprint/structure/Blueprint.kt index 20c7d14..57193fc 100644 --- a/src/main/kotlin/net/mcbrawls/blueprint/structure/Blueprint.kt +++ b/src/main/kotlin/net/mcbrawls/blueprint/structure/Blueprint.kt @@ -67,7 +67,10 @@ data class Blueprint( val future: CompletableFuture = CompletableFuture.supplyAsync { var i = 0 forEach { offset, state -> - world.setBlockState(position.add(offset), state) + synchronized(world) { + world.setBlockState(position.add(offset), state) + } + i++ }