KittenAqua / TrainworksModdingTools

Modding framework for the 2020 PC game Monster Train
15 stars 9 forks source link

PluginManager now breaks some content #104

Closed Tempus closed 4 years ago

Tempus commented 4 years ago

Easiest to verify on ChampionDataBuilder

On Oct 11th

PluginManager.AssemblyNameToPath.TryGetValue(assembly.FullName, out string basePath); was changed to PluginManager.PluginGUIDToPath.TryGetValue(PluginManager.AssemblyNameToPluginGUID[assembly.FullName], out string basePath);

However the [assembly.FullName] key is not guaranteed to exist in the dictionary before creation of assets. This will cause crashes when you attempt to access the key.