Detected biome config files are now logged
This commit is contained in:
parent
ebedc1806d
commit
016ed8241c
3 changed files with 5 additions and 3 deletions
|
@ -22,7 +22,8 @@ public interface IGenerator
|
||||||
public void setStage(GeneratorStage stage);
|
public void setStage(GeneratorStage stage);
|
||||||
public void setName(String name);
|
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.
|
* same generator (and thus, have the same identifier) but have differing names.
|
||||||
*/
|
*/
|
||||||
public String getName();
|
public String getName();
|
||||||
|
|
|
@ -594,7 +594,7 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
|
||||||
IConfigObj conf = new BOPConfig.ConfigFileObj(configFile);
|
IConfigObj conf = new BOPConfig.ConfigFileObj(configFile);
|
||||||
|
|
||||||
// log any warnings from parsing the config file
|
// 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;
|
return conf;
|
||||||
}
|
}
|
||||||
|
|
|
@ -543,10 +543,11 @@ public class BOPConfig
|
||||||
|
|
||||||
public ConfigFileObj(File configFile, boolean warnIfMissing)
|
public ConfigFileObj(File configFile, boolean warnIfMissing)
|
||||||
{
|
{
|
||||||
this.prefix = configFile.getAbsolutePath();
|
this.prefix = configFile.getName();
|
||||||
String jsonString = null;
|
String jsonString = null;
|
||||||
if (configFile.exists())
|
if (configFile.exists())
|
||||||
{
|
{
|
||||||
|
this.addMessage("Detected config file ");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
jsonString = FileUtils.readFileToString(configFile);
|
jsonString = FileUtils.readFileToString(configFile);
|
||||||
|
|
Loading…
Reference in a new issue