[StructuredData] Only add support for 15 classes when not building zones

This commit is contained in:
momo5502 2017-03-19 00:23:47 +01:00
parent 167c22abab
commit 45147ec8ea

View File

@ -145,6 +145,9 @@ namespace Components
} }
StructuredData::StructuredData() StructuredData::StructuredData()
{
// Only execute this when building zones
if (!ZoneBuilder::IsEnabled())
{ {
// Correctly upgrade stats // Correctly upgrade stats
Utils::Hook(0x42F088, StructuredData::UpdateVersionOffsets, HOOK_CALL).install()->quick(); Utils::Hook(0x42F088, StructuredData::UpdateVersionOffsets, HOOK_CALL).install()->quick();
@ -163,8 +166,8 @@ namespace Components
} }
}); });
// Only execute this when building zones return;
if (!ZoneBuilder::IsEnabled()) return; }
AssetHandler::OnLoad([] (Game::XAssetType type, Game::XAssetHeader asset, std::string filename, bool* /*restrict*/) AssetHandler::OnLoad([] (Game::XAssetType type, Game::XAssetHeader asset, std::string filename, bool* /*restrict*/)
{ {