Skip to content

Commit 69d0a2b

Browse files
Merge pull request #1023 from TonytheMacaroni/load-check
Check if plugin instance is null in MagicSpells#isLoaded
2 parents 2c79074 + 9b07ff3 commit 69d0a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/nisovin/magicspells/MagicSpells.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ public static void resetEffectlib() {
10241024
}
10251025

10261026
public static boolean isLoaded() {
1027-
return plugin.loaded;
1027+
return plugin != null && plugin.loaded;
10281028
}
10291029

10301030
/**

0 commit comments

Comments
 (0)