Skip to content

Commit b8d5d4a

Browse files
authored
Don't throw an exception when Skript has weird load behaviour (#8422)
1 parent 1c5687a commit b8d5d4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/ch/njol/skript/structures/StructAutoReload.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ public void run() {
146146

147147
@Override
148148
public void unload() {
149-
task.cancel();
149+
if (task != null)
150+
task.cancel();
150151
}
151152

152153
@Override

0 commit comments

Comments
 (0)