mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-26 10:11:27 +01:00
Use Provider for MVCoreConfigProvider in MultiverseCore.
This commit is contained in:
parent
1ea88615c7
commit
2f1a3bcc22
@ -53,7 +53,7 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
|
||||
@Inject
|
||||
private Provider<MVWorldManager> worldManagerProvider;
|
||||
@Inject
|
||||
private MVCoreConfigProvider configProvider;
|
||||
private Provider<MVCoreConfigProvider> configProviderProvider;
|
||||
|
||||
// Counter for the number of plugins that have registered with us
|
||||
private int pluginCount;
|
||||
@ -220,7 +220,7 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
|
||||
}
|
||||
|
||||
private MVCoreConfigProvider getConfigProvider() {
|
||||
return configProvider;
|
||||
return configProviderProvider.get();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user