mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-28 03:01:23 +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
|
@Inject
|
||||||
private Provider<MVWorldManager> worldManagerProvider;
|
private Provider<MVWorldManager> worldManagerProvider;
|
||||||
@Inject
|
@Inject
|
||||||
private MVCoreConfigProvider configProvider;
|
private Provider<MVCoreConfigProvider> configProviderProvider;
|
||||||
|
|
||||||
// Counter for the number of plugins that have registered with us
|
// Counter for the number of plugins that have registered with us
|
||||||
private int pluginCount;
|
private int pluginCount;
|
||||||
@ -220,7 +220,7 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private MVCoreConfigProvider getConfigProvider() {
|
private MVCoreConfigProvider getConfigProvider() {
|
||||||
return configProvider;
|
return configProviderProvider.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user