Use Provider for MVCoreConfigProvider in MultiverseCore.

This commit is contained in:
Jeremy Wood 2023-03-09 09:24:55 -05:00
parent 1ea88615c7
commit 2f1a3bcc22
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B

View File

@ -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();
}
/**