Skip to content

Commit c2d7ba8

Browse files
authored
Merge pull request #132 from Shynixn/development
Merge changes to master --release
2 parents 8723682 + e3e2e81 commit c2d7ba8

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

mccoroutine-folia-core/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ dependencies {
3131
implementation(project(":mccoroutine-folia-api"))
3232

3333
compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
34-
compileOnly("dev.folia:folia-api:1.20.1-R0.1-SNAPSHOT")
34+
compileOnly("dev.folia:folia-api:1.21.4-R0.1-SNAPSHOT")
3535

3636
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
37-
testImplementation("dev.folia:folia-api:1.20.1-R0.1-SNAPSHOT")
37+
testImplementation("dev.folia:folia-api:1.21.4-R0.1-SNAPSHOT")
3838
}

mccoroutine-folia-sample/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ plugins {
77

88
java {
99
toolchain {
10-
languageVersion.set(JavaLanguageVersion.of(17))
10+
languageVersion.set(JavaLanguageVersion.of(21))
1111
}
1212
}
1313

1414
tasks.withType<KotlinCompile>().configureEach {
1515
kotlinOptions {
16-
jvmTarget = "17"
16+
jvmTarget = "21"
1717
}
1818
}
1919

@@ -39,7 +39,7 @@ dependencies {
3939
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
4040
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.9")
4141

42-
compileOnly("dev.folia:folia-api:1.20.1-R0.1-SNAPSHOT")
42+
compileOnly("dev.folia:folia-api:1.21.4-R0.1-SNAPSHOT")
4343

44-
testImplementation("org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT")
44+
testImplementation("dev.folia:folia-api:1.21.4-R0.1-SNAPSHOT")
4545
}

mccoroutine-folia-test/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ dependencies {
3030
implementation(project(":mccoroutine-folia-api"))
3131

3232
compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
33-
compileOnly("dev.folia:folia-api:1.20.1-R0.1-20230615.235213-1")
33+
compileOnly("dev.folia:folia-api:1.21.4-R0.1-SNAPSHOT")
3434

3535
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
36-
testImplementation("dev.folia:folia-api:1.20.1-R0.1-20230615.235213-1")
36+
testImplementation("dev.folia:folia-api:1.21.4-R0.1-SNAPSHOT")
3737
}

mccoroutine-folia-test/src/main/java/com/github/shynixn/mccoroutine/folia/test/impl/TestMCCoroutineConfigurationImpl.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ internal class TestMCCoroutineConfigurationImpl(private val plugin: Plugin, priv
99
MCCoroutineConfiguration {
1010
override var shutdownStrategy: ShutdownStrategy = ShutdownStrategy.SCHEDULER
1111

12+
/**
13+
* How often the main plugin dispatcher scheduler ticks.
14+
* Defaults to 16ms ~ 60 times per second
15+
*/
16+
override var mainDispatcherTickRateMs: Long = 60
17+
1218
/**
1319
* Gets if the Folia schedulers where successfully loaded into MCCoroutine.
1420
* Returns false if MCCoroutine falls back to the BukkitScheduler.

0 commit comments

Comments
 (0)