Skip to content

Commit

Permalink
Only call onDisable on active hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Intybyte committed Dec 4, 2024
1 parent 26cfd54 commit 1a281dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public void registerHook(Hook<?> hook) {

public void disableHooks() {
for (Hook<?> hook : hooks.values()) {
hook.onDisable();
if (hook.active()) {
hook.onDisable();
}
}
}
}

0 comments on commit 1a281dd

Please sign in to comment.