Attempt to fix Spout NoClassDefFoundError

This commit is contained in:
bm01 2013-01-30 08:44:01 +01:00
parent bfa29cbf02
commit d09cd49f01
2 changed files with 5 additions and 12 deletions

View File

@ -128,8 +128,11 @@ public class mcMMO extends JavaPlugin {
p = this;
setupFilePaths();
SpoutStuff.setSpoutEnabled();
if (p.getServer().getPluginManager().getPlugin("Spout") != null) {
spoutEnabled = true;
SpoutStuff.preCacheFiles();
}
// Force the loading of config files
Config configInstance = Config.getInstance();
@ -176,7 +179,6 @@ public class mcMMO extends JavaPlugin {
pluginManager.registerEvents(inventoryListener, this);
pluginManager.registerEvents(worldListener, this);
if (configInstance.getHardcoreEnabled()) {
pluginManager.registerEvents(hardcoreListener, this);
}

View File

@ -594,15 +594,6 @@ public class SpoutStuff {
}
}
public static void setSpoutEnabled() {
if (plugin.getServer().getPluginManager().getPlugin("Spout") != null) {
mcMMO.spoutEnabled = true;
}
else {
mcMMO.spoutEnabled = false;
}
}
public static void preCacheFiles() {
if (mcMMO.spoutEnabled) {
extractFiles(); //Extract source materials