Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
BelgianDev committed Dec 2, 2023
1 parent 774e740 commit 0d87d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected void onActivate(@NotNull ModuleActivationContext ctx) {
LOGGER.info("Module activated!");

LOGGER.info("Registering services..");
ctx.getServer().getServiceManager().registerService(DatabaseService.class, new LocalDatabaseService());
ctx.getServer().getServiceManager().registerService(this, DatabaseService.class, new LocalDatabaseService());

ctx.getServer().createSequenceTask(this, () -> {
LOGGER.info("Hi!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void connect() throws DatabaseException {
if (!this.closed)
throw new DatabaseException("Already connected to the database.");

this.action = AtlasNetwork.getServer().createSequenceTask(() -> {
this.action = AtlasNetwork.getServer().createSequenceTask(TestModule.MODULE, () -> {
for (LocalDatabase<?> database : this.createdDatabases.values()) {
database.update();
}
Expand Down

0 comments on commit 0d87d24

Please sign in to comment.