mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
use TryGetModApi
This commit is contained in:
parent
169a5c5641
commit
685ad58878
@ -115,7 +115,7 @@ public class QSBCore : ModBehaviour
|
||||
|
||||
InitAssemblies();
|
||||
|
||||
MenuApi = ModHelper.Interaction.GetModApi<IMenuAPI>(ModHelper.Manifest.Dependencies[0]);
|
||||
MenuApi = ModHelper.Interaction.TryGetModApi<IMenuAPI>(ModHelper.Manifest.Dependencies[0]);
|
||||
|
||||
DebugLog.DebugWrite("loading qsb_network_big bundle", MessageType.Info);
|
||||
var path = Path.Combine(ModHelper.Manifest.ModFolderPath, "AssetBundles/qsb_network_big");
|
||||
|
Loading…
Reference in New Issue
Block a user