Skip to content

Commit 6be95d0

Browse files
committed
Fixed alot of minor things.
1 parent 4ccea68 commit 6be95d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/mangorage/mangobotcore/internal/plugin/PluginManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void load() {
3434

3535

3636

37-
ServiceLoader.load(Plugin.class)
37+
ServiceLoader.load(PluginManagerImpl.class.getModule().getLayer(), Plugin.class)
3838
.stream()
3939
.toList()
4040
.forEach(plugin -> {
@@ -83,7 +83,7 @@ public void load() {
8383

8484
LogHelper.info("Giving Metadata info out...");
8585

86-
ServiceLoader.load(IPluginInfoGetter.class)
86+
ServiceLoader.load(PluginManagerImpl.class.getModule().getLayer(), IPluginInfoGetter.class)
8787
.stream()
8888
.forEach(provider -> {
8989
final var list = manager.getLibraries()

0 commit comments

Comments
 (0)