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:
parent
f45c40e103
commit
c56225d051
@ -340,6 +340,9 @@ public final class SlimefunPlugin extends JavaPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
|
// CS-CoreLib wasn't loaded, just disabling
|
||||||
|
if (instance == null) return;
|
||||||
|
|
||||||
Bukkit.getScheduler().cancelTasks(this);
|
Bukkit.getScheduler().cancelTasks(this);
|
||||||
|
|
||||||
if (ticker != null) {
|
if (ticker != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user