diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-10 21:43:27 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-10 21:43:27 +0200 |
commit | 35b79e5d710862f957bc494638a8d8906992665d (patch) | |
tree | 1c8945ad44eed86c5c572e99b277152b2d6e90e1 /src/Root.cpp | |
parent | Capitalising (diff) | |
download | cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.gz cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.bz2 cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.lz cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.xz cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.zst cuberite-35b79e5d710862f957bc494638a8d8906992665d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Root.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index 2a80baeb3..572cbf1fc 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -314,15 +314,15 @@ void cRoot::LoadWorlds(cIniFile & IniFile) -cWorld * cRoot::CreateAndInitializeWorld(const AString & a_WorldName) +cWorld * cRoot::CreateAndInitializeWorld(const AString & a_WorldName, eDimension a_Dimension, const AString & a_OverworldName) { if (m_WorldsByName[a_WorldName] != NULL) { return NULL; } - cWorld * NewWorld = new cWorld(a_WorldName.c_str()); + cWorld * NewWorld = new cWorld(a_WorldName.c_str(), a_Dimension, a_OverworldName); m_WorldsByName[a_WorldName] = NewWorld; - NewWorld->Start(); + NewWorld->Start(!a_OverworldName.empty()); NewWorld->InitializeSpawn(); m_PluginManager->CallHookWorldStarted(*NewWorld); return NewWorld; |