Detected biome config files are now logged

This commit is contained in:
Adubbz 2016-11-21 12:50:08 +11:00
parent ebedc1806d
commit 016ed8241c
3 changed files with 5 additions and 3 deletions

View file

@ -22,7 +22,8 @@ public interface IGenerator
public void setStage(GeneratorStage stage);
public void setName(String name);
/**A unique name used to classify the purpose of a generator. For example, emeralds and ruby use the
/**
* A unique name used to classify the purpose of a generator. For example, emeralds and ruby use the
* same generator (and thus, have the same identifier) but have differing names.
*/
public String getName();

View file

@ -594,7 +594,7 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
IConfigObj conf = new BOPConfig.ConfigFileObj(configFile);
// log any warnings from parsing the config file
for (String msg : conf.flushMessages()) {BiomesOPlenty.logger.warn(msg);}
for (String msg : conf.flushMessages()) {BiomesOPlenty.logger.info(msg);}
return conf;
}

View file

@ -543,10 +543,11 @@ public class BOPConfig
public ConfigFileObj(File configFile, boolean warnIfMissing)
{
this.prefix = configFile.getAbsolutePath();
this.prefix = configFile.getName();
String jsonString = null;
if (configFile.exists())
{
this.addMessage("Detected config file ");
try
{
jsonString = FileUtils.readFileToString(configFile);