Skip to content

Commit

Permalink
NetworkCompatibility ingore mods with SoftDependency (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
KingEnderBrine authored May 11, 2021
1 parent d2b71fb commit 7acbd23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R2API/Utils/NetworkCompatibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private void ScanPluginsForNetworkCompat(object? _, EventArgs __) {
continue;
}

if (pluginInfo.Dependencies.All(dependency => dependency.DependencyGUID != R2API.PluginGUID)) {
if (pluginInfo.Dependencies.All(dependency => dependency.DependencyGUID != R2API.PluginGUID || dependency.Flags == BepInEx.BepInDependency.DependencyFlags.SoftDependency)) {
continue;
}

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The most recent changelog can always be found on the [GitHub](https://github.com

**Current**

* **IMPORTANT FOR MOD DEVS:** [R2API will no longer register mods to network if they don't depend on it with HardDependecy](https://github.com/risk-of-thunder/R2API/pull/286)
* [Added DeployableAPI](https://github.com/risk-of-thunder/R2API/pull/279)
* [Added DamageAPI](https://github.com/risk-of-thunder/R2API/pull/284)

Expand Down

0 comments on commit 7acbd23

Please sign in to comment.