Permalink
Browse files

NOISSUE fix build

  • Loading branch information...
peterix committed Dec 11, 2018
1 parent 3fe9165 commit 075e173fbd90292706d4033fcb965a4e48b2da6f
Showing with 3 additions and 2 deletions.
  1. +3 −2 api/logic/minecraft/World.cpp
@@ -378,14 +378,15 @@ void World::loadFromLevelDat(QByteArray data)
m_lastPlayed = QDateTime::fromMSecsSinceEpoch(temp);
}

m_gameType = (GameType) read_int(val, "GameType", 0);
int GameType_val = read_int(val, "GameType", 0);
m_gameType = (GameType) GameType_val;

m_randomSeed = read_long(val, "RandomSeed", 0);

qDebug() << "World Name:" << m_actualName;
qDebug() << "Last Played:" << m_lastPlayed.toString();
qDebug() << "Seed:" << m_randomSeed;
qDebug() << "GameMode:" << m_gameType;
qDebug() << "GameMode:" << GameType_val;
}
catch (const nbt::io::input_error &e)
{

0 comments on commit 075e173

Please sign in to comment.