From d7ffa0312cbae4c3f7cb9b50bd3a836a52a74429 Mon Sep 17 00:00:00 2001 From: FabienCAYRE Date: Tue, 11 Jul 2023 16:01:19 +0200 Subject: [PATCH] Fix loading components --- velocity/src/main/java/fr/omny/flow/FlowProxy.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/velocity/src/main/java/fr/omny/flow/FlowProxy.java b/velocity/src/main/java/fr/omny/flow/FlowProxy.java index 2f119ee..74429be 100644 --- a/velocity/src/main/java/fr/omny/flow/FlowProxy.java +++ b/velocity/src/main/java/fr/omny/flow/FlowProxy.java @@ -73,10 +73,12 @@ public void init(ProxyServer server, Logger logger, Path dataDirectory) { Injector.startApplication(FlowProxy.class, logger); Injector.addFrom("fr.omny.flow"); - declaredPackages().forEach(Injector::addFrom); loadComponents(); + declaredPackages().forEach(Injector::addFrom); + + Injector.addService(Toml.class, "config", pluginConfig, true); Injector.addService(ProxyServer.class, server, true);