mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
fix configManager NPE
This commit is contained in:
parent
198b7e3f46
commit
a344e43e2e
@ -71,8 +71,6 @@ public final class ConfigManager {
|
|||||||
private RankConfig rankConfig;
|
private RankConfig rankConfig;
|
||||||
private ItemWeightConfig itemWeightConfig;
|
private ItemWeightConfig itemWeightConfig;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* CONFIG ERRORS */
|
/* CONFIG ERRORS */
|
||||||
|
|
||||||
private ArrayList<String> configErrors; //Collect errors to whine about to server admins
|
private ArrayList<String> configErrors; //Collect errors to whine about to server admins
|
||||||
@ -81,7 +79,10 @@ public final class ConfigManager {
|
|||||||
{
|
{
|
||||||
unloadables = new ArrayList<>();
|
unloadables = new ArrayList<>();
|
||||||
userFiles = new ArrayList<>();
|
userFiles = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void loadConfigs()
|
||||||
|
{
|
||||||
// Load Config Files
|
// Load Config Files
|
||||||
// I'm pretty these are supposed to be done in a specific order, so don't rearrange them willy nilly
|
// I'm pretty these are supposed to be done in a specific order, so don't rearrange them willy nilly
|
||||||
|
|
||||||
|
@ -406,8 +406,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
|
|
||||||
private void loadConfigFiles() {
|
private void loadConfigFiles() {
|
||||||
configManager = new ConfigManager();
|
configManager = new ConfigManager();
|
||||||
|
configManager.loadConfigs();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerEvents() {
|
private void registerEvents() {
|
||||||
|
Loading…
Reference in New Issue
Block a user