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:
parent
782d8bc8c1
commit
9278c8353b
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user