Added the End height and composition generators.
Also made the dimension in world.ini specifiable by a string. Exported StringToDimension() and StringToBiome() to Lua API. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1621 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -215,7 +215,8 @@ cWorld::cWorld(const AString & a_WorldName) :
|
||||
|
||||
cIniFile IniFile(m_IniFileName);
|
||||
IniFile.ReadFile();
|
||||
m_Dimension = (eDimension)(IniFile.GetValueSetI("General", "Dimension", 0));
|
||||
AString Dimension = IniFile.GetValueSet("General", "Dimension", "Overworld");
|
||||
m_Dimension = StringToDimension(Dimension);
|
||||
switch (m_Dimension)
|
||||
{
|
||||
case dimNether:
|
||||
@@ -226,7 +227,7 @@ cWorld::cWorld(const AString & a_WorldName) :
|
||||
}
|
||||
default:
|
||||
{
|
||||
LOGWARNING("Unknown dimension: %d. Setting to Overworld (0)", m_Dimension);
|
||||
LOGWARNING("Unknown dimension: \"%s\". Setting to Overworld", Dimension.c_str());
|
||||
m_Dimension = dimOverworld;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user