As it's written, only resources that the vessel contains are represented. That's fine for a number of cases, but if a specified resource is not on a vessel, a number of resource queries will fail, even if they don't have to - for instance, ResourceDisplayName("Xenon") should be able to return "Xenon" or its localized equivalent.
As it's written, only resources that the vessel contains are represented. That's fine for a number of cases, but if a specified resource is not on a vessel, a number of resource queries will fail, even if they don't have to - for instance, ResourceDisplayName("Xenon") should be able to return "Xenon" or its localized equivalent.