[AssetHandler] Fix gfxworld issue with zones 316 or higher

This commit is contained in:
Diavolo 2022-07-03 17:49:22 +02:00
parent a200d82ae6
commit e4ec3092be
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -269,6 +269,13 @@ namespace Components
} }
} }
} }
if (type == Game::XAssetType::ASSET_TYPE_GFXWORLD && Zones::Version() >= 316)
{
asset.gfxWorld->sortKeyEffectDecal = 39;
asset.gfxWorld->sortKeyEffectAuto = 48;
asset.gfxWorld->sortKeyDistortion = 43;
}
} }
bool AssetHandler::IsAssetEligible(Game::XAssetType type, Game::XAssetHeader *asset) bool AssetHandler::IsAssetEligible(Game::XAssetType type, Game::XAssetHeader *asset)