Revert "Fix startup error on Windows."

This reverts commit 01bed7cc4b.
Because that commit CAUSED a startup error instead of fixing one.
This commit is contained in:
main() 2011-10-16 15:29:09 +02:00
parent 56926dc14c
commit e7aa563352

View File

@ -256,7 +256,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
public void loadConfigs() {
// Now grab the Configuration Files.
this.multiverseConfig = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
Configuration coreDefaults = YamlConfiguration.loadConfiguration(this.getClass().getResourceAsStream(File.separator + "defaults" + File.separator + "config.yml"));
Configuration coreDefaults = YamlConfiguration.loadConfiguration(this.getClass().getResourceAsStream("/defaults/config.yml"));
this.multiverseConfig.setDefaults(coreDefaults);
this.multiverseConfig.options().copyDefaults(true);
this.worldManager.loadWorldConfig(new File(getDataFolder(), "worlds.yml"));