diff --git a/common/src/main/java/com/discordsrv/common/module/ModuleManager.java b/common/src/main/java/com/discordsrv/common/module/ModuleManager.java index 486580a6..771fceb2 100644 --- a/common/src/main/java/com/discordsrv/common/module/ModuleManager.java +++ b/common/src/main/java/com/discordsrv/common/module/ModuleManager.java @@ -145,7 +145,7 @@ public class ModuleManager { public void onShuttingDown(DiscordSRVShuttingDownEvent event) { modules.stream() .sorted((m1, m2) -> Integer.compare(m2.shutdownOrder(), m1.shutdownOrder())) - .forEachOrdered(Module::disable); + .forEachOrdered(this::disable); } public void reload() {