Skip to content

Commit bd1bad4

Browse files
committed
Fix additional exception when disabling dynmap after it fails to load
1 parent 05bb7db commit bd1bad4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spigot/src/main/java/org/dynmap/bukkit/DynmapPlugin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,9 @@ public void onDisable() {
10911091
}
10921092

10931093
/* Disable core */
1094-
core.disableCore();
1094+
if (core != null) {
1095+
core.disableCore();
1096+
}
10951097

10961098
if(SnapshotCache.sscache != null) {
10971099
SnapshotCache.sscache.cleanup();

0 commit comments

Comments
 (0)