Merge pull request #2996 from Multiverse/mockbukkit-bump

Bump MockBukkit with the onDisable fix
This commit is contained in:
Ben Woo 2023-09-07 10:04:05 +08:00 committed by GitHub
commit e84fb1f1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -123,7 +123,7 @@ dependencies {
// Tests
testImplementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.20:3.19.2'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.20:3.20.2'
testImplementation('com.googlecode.json-simple:json-simple:1.1.1') {
exclude group: 'junit', module: 'junit'
}

View File

@ -151,10 +151,6 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
*/
@Override
public void onDisable() {
if (serviceLocator == null) {
// TODO: This is a workaround while waiting for MockBukkit to fix their onDisable being called twice
return;
}
this.saveAllConfigs();
shutdownDependencyInjection();
Logging.shutdown();