File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/kotlin/dev/entree/vchest Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ plugins {
1919}
2020
2121group = ' dev.entree'
22- version = ' 2.1.0 '
22+ version = ' 2.1.1 '
2323
2424repositories {
2525 mavenCentral()
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ fun nfmt(number: Number): String =
3232val chestPlugin: ChestPlugin get() = JavaPlugin .getPlugin(ChestPlugin ::class .java)
3333
3434fun <A , B > CompletableFuture<A>.thenApplySync (f : (A ) -> B ): CompletableFuture <B > {
35- return thenApplyAsync(f, chestPlugin.syncExecutor)
35+ if (chestPlugin.isEnabled) {
36+ return thenApplyAsync(f, chestPlugin.syncExecutor)
37+ } else {
38+ return thenApply(f)
39+ }
3640}
3741
3842fun <A > CompletableFuture<A>.thenAcceptSyncPrime (f : (Result <A >) -> Unit ): CompletableFuture <A > {
You can’t perform that action at this time.
0 commit comments