mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-28 17:37:52 +01:00
Make Module#enable call Module#reload by default
This commit is contained in:
parent
bdc767ce47
commit
f5acc00f8a
@ -42,11 +42,6 @@ public class ChannelUpdaterModule extends AbstractModule<DiscordSRV> {
|
||||
super(discordSRV);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enable() {
|
||||
reload();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reload() {
|
||||
futures.forEach(future -> future.cancel(false));
|
||||
|
@ -34,7 +34,10 @@ public interface Module {
|
||||
return 0;
|
||||
}
|
||||
|
||||
default void enable() {}
|
||||
default void enable() {
|
||||
reload();
|
||||
}
|
||||
|
||||
default void disable() {}
|
||||
default void reload() {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user