[StructuredData] Only add support for 15 classes when not building zones
This commit is contained in:
parent
167c22abab
commit
45147ec8ea
@ -145,6 +145,9 @@ namespace Components
|
||||
}
|
||||
|
||||
StructuredData::StructuredData()
|
||||
{
|
||||
// Only execute this when building zones
|
||||
if (!ZoneBuilder::IsEnabled())
|
||||
{
|
||||
// Correctly upgrade stats
|
||||
Utils::Hook(0x42F088, StructuredData::UpdateVersionOffsets, HOOK_CALL).install()->quick();
|
||||
@ -163,8 +166,8 @@ namespace Components
|
||||
}
|
||||
});
|
||||
|
||||
// Only execute this when building zones
|
||||
if (!ZoneBuilder::IsEnabled()) return;
|
||||
return;
|
||||
}
|
||||
|
||||
AssetHandler::OnLoad([] (Game::XAssetType type, Game::XAssetHeader asset, std::string filename, bool* /*restrict*/)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user