Made sure that SpoutConfig.load is called when the instance is created, for safety

This commit is contained in:
bm01 2012-05-24 06:18:43 +02:00
parent d0e9f03311
commit 2a977557c2
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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