Bump MockBukkit with the onDisable fix

This commit is contained in:
Ben Woo 2023-09-07 09:48:47 +08:00
parent 12aedc1942
commit b51cd645bb
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8
2 changed files with 1 additions and 5 deletions

View File

@ -123,7 +123,7 @@ dependencies {
// Tests // Tests
testImplementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10' 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') { testImplementation('com.googlecode.json-simple:json-simple:1.1.1') {
exclude group: 'junit', module: 'junit' exclude group: 'junit', module: 'junit'
} }

View File

@ -151,10 +151,6 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
*/ */
@Override @Override
public void onDisable() { 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(); this.saveAllConfigs();
shutdownDependencyInjection(); shutdownDependencyInjection();
Logging.shutdown(); Logging.shutdown();