From 36579cfcd03ae0ba0a566b07250e9cb4c16a65ba Mon Sep 17 00:00:00 2001 From: Rsl1122 <24460436+Rsl1122@users.noreply.github.com> Date: Sat, 29 Feb 2020 09:59:46 +0200 Subject: [PATCH] Revert commit '4e8f509' Affects issues: - Fixed #1344 --- .../main/java/com/djrapitops/plan/PlanSystem.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/PlanSystem.java b/Plan/common/src/main/java/com/djrapitops/plan/PlanSystem.java index d31160cff..2e10fd34f 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/PlanSystem.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/PlanSystem.java @@ -45,8 +45,6 @@ import com.djrapitops.plugin.benchmarking.Timings; import com.djrapitops.plugin.logging.L; import com.djrapitops.plugin.logging.console.PluginLogger; import com.djrapitops.plugin.logging.error.ErrorHandler; -import com.djrapitops.plugin.task.AbsRunnable; -import com.djrapitops.plugin.task.RunnableFactory; import javax.inject.Inject; import javax.inject.Singleton; @@ -84,7 +82,6 @@ public class PlanSystem implements SubSystem { private final SettingsServiceImplementation settingsService; private final PluginLogger logger; private final Timings timings; - private final RunnableFactory runnableFactory; private final ErrorHandler errorHandler; @Inject @@ -108,7 +105,6 @@ public class PlanSystem implements SubSystem { SettingsServiceImplementation settingsService, PluginLogger logger, Timings timings, - RunnableFactory runnableFactory, ErrorHandler errorHandler, PlanAPI.PlanAPIHolder apiHolder ) { @@ -130,7 +126,6 @@ public class PlanSystem implements SubSystem { this.queryService = queryService; this.settingsService = settingsService; this.logger = logger; - this.runnableFactory = runnableFactory; this.timings = timings; this.errorHandler = errorHandler; @@ -183,12 +178,7 @@ public class PlanSystem implements SubSystem { settingsService.register(); queryService.register(); - runnableFactory.create("Register Extensions", new AbsRunnable() { - @Override - public void run() { - extensionService.register(); - } - }).runTaskLaterAsynchronously(0L); + extensionService.register(); enabled = true; }