CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
571 stars 85 forks source link

ignore saving TMPE metadata if there are no networks. #1505

Closed kianzarrin closed 2 years ago

kianzarrin commented 2 years ago

fixes #1313 Added null guard for when there is no networks no need to save any asset data in such situations anyway Ignore white space when reviewing.

test save building with sub-building and no networks: PASS no on screen error log shows:

Debug 1,316.7875336: AssetDataExtension.OnAssetSavedImpl(): No segments to record.
kianzarrin commented 2 years ago

What about placing such building

If there are no networks then there are no metadata. So TMPE is not involved when placing such buildings.