mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
This commit is contained in:
parent
a9be52c41a
commit
087b7e7abf
1373 changed files with 19449 additions and 19903 deletions
|
|
@ -24,14 +24,14 @@ ChunkStorage *McRegionLevelStorage::createChunkStorage(Dimension *dimension)
|
|||
{
|
||||
//File folder = getFolder();
|
||||
|
||||
if (dynamic_cast<HellDimension *>(dimension) != nullptr)
|
||||
if (dynamic_cast<HellDimension *>(dimension) != NULL)
|
||||
{
|
||||
|
||||
if(app.GetResetNether())
|
||||
{
|
||||
#ifdef SPLIT_SAVES
|
||||
vector<FileEntry *> *netherFiles = m_saveFile->getRegionFilesByDimension(1);
|
||||
if(netherFiles!=nullptr)
|
||||
if(netherFiles!=NULL)
|
||||
{
|
||||
DWORD bytesWritten = 0;
|
||||
for(auto& netherFile : *netherFiles)
|
||||
|
|
@ -42,7 +42,7 @@ ChunkStorage *McRegionLevelStorage::createChunkStorage(Dimension *dimension)
|
|||
}
|
||||
#else
|
||||
vector<FileEntry *> *netherFiles = m_saveFile->getFilesWithPrefix(LevelStorage::NETHER_FOLDER);
|
||||
if(netherFiles!=nullptr)
|
||||
if(netherFiles!=NULL)
|
||||
{
|
||||
for(auto& netherFile : *netherFiles)
|
||||
{
|
||||
|
|
@ -74,7 +74,7 @@ ChunkStorage *McRegionLevelStorage::createChunkStorage(Dimension *dimension)
|
|||
vector<FileEntry *> *endFiles = m_saveFile->getFilesWithPrefix(LevelStorage::ENDER_FOLDER);
|
||||
|
||||
// 4J-PB - There will be no End in early saves
|
||||
if(endFiles!=nullptr)
|
||||
if(endFiles!=NULL)
|
||||
{
|
||||
for(auto& endFile : *endFiles)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue