Skip to content

Commit

Permalink
Synchronise setBlockState
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Jul 2, 2024
1 parent c143a6d commit 38c142e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ data class Blueprint(
val future: CompletableFuture<PlacedBlueprint> = CompletableFuture.supplyAsync {
var i = 0
forEach { offset, state ->
world.setBlockState(position.add(offset), state)
synchronized(world) {
world.setBlockState(position.add(offset), state)
}

i++
}

Expand Down

0 comments on commit 38c142e

Please sign in to comment.