1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-22 22:12:45 +01:00

Remove addClientSideModDependency (deprecated since v5.5.0)

This commit is contained in:
AnthonyFuller 2023-09-14 19:19:40 +01:00
parent 782d8bc8c1
commit 9278c8353b

View File

@ -429,22 +429,6 @@ export class Controller {
this.installedMods = []
}
/**
* You should use {@link modIsInstalled} instead!
*
* Returns whether a mod is UNAVAILABLE.
*
* @param modId The mod's ID.
* @returns If the mod is unavailable. You should probably abort initialization if true is returned. Also returns true if the `overrideFrameworkChecks` flag is set.
* @deprecated since v5.5.0
*/
public addClientSideModDependency(modId: string): boolean {
return (
!this.installedMods.includes(modId) ||
getFlag("overrideFrameworkChecks") === true
)
}
/**
* Returns whether a mod is available and installed.
*