Skip to content

Commit 0228b74

Browse files
authored
Merge branch 'version/26.1' into mergify/configuration-deprecated-update
2 parents 0c9646d + 54cce2a commit 0228b74

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.mergify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ pull_request_rules:
2727
👋 {{author}} your PR is conflicting and needs to be updated to be
2828
merged
2929
merge_protections_settings:
30-
reporting_method: check-runs
30+
reporting_method: check-runs

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
77
javaVersion=25
88
mcVersion=26.1.1
99
group=dev.slne.surf.api
10-
version=3.9.2
10+
version=3.9.3
1111
relocationPrefix=dev.slne.surf.api.libs
1212
snapshot=false

surf-api-paper/surf-api-paper-server/src/main/kotlin/dev/slne/surf/api/paper/server/impl/visualizer/visualizer/SurfVisualizerAreaImpl.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,11 @@ class SurfVisualizerAreaImpl(
264264
val cx = getXFromChunkKey(chunkKey)
265265
val cz = getZFromChunkKey(chunkKey)
266266

267-
val chunk = world.getChunkAtAsync(cx, cz).await()
268-
val snapshot = chunk.getChunkSnapshot(true, false, false, false)
269-
snapshotCache.put(chunkKey, snapshot)
270-
return snapshot
267+
return world.getChunkAtAsync(cx, cz).thenApply { chunk ->
268+
chunk.getChunkSnapshot(true, false, false, false).also {
269+
snapshotCache.put(chunkKey, it)
270+
}
271+
}.await()
271272
}
272273

273274
fun onChunkBecameVisible(player: Player, chunk: Chunk) {

0 commit comments

Comments
 (0)