1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Fix NPE on disabling without CS-CoreLib

This commit is contained in:
SoSeDiK 2019-09-30 19:21:33 +03:00
parent f45c40e103
commit c56225d051

View File

@ -340,6 +340,9 @@ public final class SlimefunPlugin extends JavaPlugin {
@Override
public void onDisable() {
// CS-CoreLib wasn't loaded, just disabling
if (instance == null) return;
Bukkit.getScheduler().cancelTasks(this);
if (ticker != null) {