Skip to content

Commit

Permalink
chore: broaden flattenFutures generic
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Nov 24, 2024
1 parent 8033a8d commit d2adc13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_build=2
loader_version=0.16.7

# Mod Properties
mod_version=1.11
mod_version=1.11.1
maven_group=net.mcbrawls
mod_id=blueprint

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/net/mcbrawls/blueprint/structure/Blueprint.kt
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ data class Blueprint(
val EMPTY = Blueprint(emptyList(), emptyList(), emptyMap(), Vec3i.ZERO, emptyMap())

/**
* Flattens a set of placed blueprint futures into one progressive future.
* Flattens a set of progressive futures into one progressive future.
* @return a progressive future of combined futures and progress provider
*/
fun flattenFutures(vararg futures: ProgressiveFuture<PlacedBlueprint>): ProgressiveFuture<*> {
fun flattenFutures(vararg futures: ProgressiveFuture<*>): ProgressiveFuture<*> {
// create compounded future
val future = CompletableFuture.runAsync {
val completableFutures = futures.map(ProgressiveFuture<*>::future)
Expand Down

0 comments on commit d2adc13

Please sign in to comment.