public override void LoadData() { Logger.WriteLog("Mod Version: " + ReleaseVersion); if (MyAPIGateway.Multiplayer.IsServer == false) { return; } //if(MyAPIGateway.Utilities.GamePaths.ModScopeName.StartsWith("RivalAI (Unstable)")) Instance = this; foreach (var mod in MyAPIGateway.Session.Mods) { if (mod.PublishedFileId == ShieldModId) { Logger.WriteLog("Defense Shield Mod Detected"); ShieldMod = true; continue; } if (mod.PublishedFileId == WeaponCoreModId || mod.Name.Contains("WeaponCore-Local")) { Logger.WriteLog("WeaponCore Mod Detected"); WeaponCoreMod = true; } } MESApi.RegisterAPIListener(); }
public override void LoadData() { if (MyAPIGateway.Multiplayer.IsServer == false) { return; } Instance = this; foreach (var mod in MyAPIGateway.Session.Mods) { if (mod.PublishedFileId == ShieldModId) { Logger.WriteLog("Defense Shield Mod Detected"); ShieldMod = true; continue; } if (mod.PublishedFileId == WeaponCoreModId || mod.Name.Contains("WeaponCore-Local")) { Logger.WriteLog("WeaponCore Mod Detected"); WeaponCoreMod = true; } } MESApi.RegisterAPIListener(); }