TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ HasMod()

static bool Terraria.ModLoader.ModLoader.HasMod ( string name)
inlinestatic

Safely checks whether or not a mod with the specified internal name is currently loaded.

Returns
Whether or not a mod with the provided internal name has been found.

Definition at line 121 of file ModLoader.cs.

122 {
123 return modsByName.ContainsKey(name);
124 }
static readonly IDictionary< string, Mod > modsByName
Definition ModLoader.cs:51

References Terraria.ModLoader.ModLoader.modsByName.

Referenced by Terraria.ModLoader.JITWhenModsEnabledAttribute.ShouldJIT().

+ Here is the caller graph for this function: