mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 16:59:37 +01:00
Made sure that SpoutConfig.load is called when the instance is created, for safety
This commit is contained in:
parent
d0e9f03311
commit
2a977557c2
@ -9,6 +9,7 @@ public class SpoutConfig extends ConfigLoader {
|
|||||||
public static SpoutConfig getInstance() {
|
public static SpoutConfig getInstance() {
|
||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
instance = new SpoutConfig(mcMMO.p);
|
instance = new SpoutConfig(mcMMO.p);
|
||||||
|
instance.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
|
@ -25,7 +25,7 @@ public class SpoutStart implements Runnable{
|
|||||||
|
|
||||||
//Spout Stuff
|
//Spout Stuff
|
||||||
if (plugin.spoutEnabled) {
|
if (plugin.spoutEnabled) {
|
||||||
SpoutConfig.getInstance().load();
|
SpoutConfig.getInstance();
|
||||||
SpoutStuff.setupSpoutConfigs();
|
SpoutStuff.setupSpoutConfigs();
|
||||||
SpoutStuff.registerCustomEvent();
|
SpoutStuff.registerCustomEvent();
|
||||||
SpoutStuff.extractFiles(); //Extract source materials
|
SpoutStuff.extractFiles(); //Extract source materials
|
||||||
|
Loading…
x
Reference in New Issue
Block a user