From fd925e9a8c13d31980d934195ea9cc81acaf970a Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 22 Aug 2018 23:07:48 -0400 Subject: let mods access mod.IsContentPack property (#534) --- src/SMAPI/Framework/IModMetadata.cs | 7 ++----- src/SMAPI/IModInfo.cs | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/SMAPI/Framework/IModMetadata.cs b/src/SMAPI/Framework/IModMetadata.cs index edd7eed6..1a007297 100644 --- a/src/SMAPI/Framework/IModMetadata.cs +++ b/src/SMAPI/Framework/IModMetadata.cs @@ -28,10 +28,10 @@ namespace StardewModdingAPI.Framework /// The reason the metadata is invalid, if any. string Error { get; } - /// The mod instance (if loaded and is false). + /// The mod instance (if loaded and is false). IMod Mod { get; } - /// The content pack instance (if loaded and is true). + /// The content pack instance (if loaded and is true). IContentPack ContentPack { get; } /// Writes messages to the console and log file as this mod. @@ -40,9 +40,6 @@ namespace StardewModdingAPI.Framework /// The mod-provided API (if any). object Api { get; } - /// Whether the mod is a content pack. - bool IsContentPack { get; } - /// The update-check metadata for this mod (if any). ModEntryModel UpdateCheckData { get; } diff --git a/src/SMAPI/IModInfo.cs b/src/SMAPI/IModInfo.cs index a16c2d7b..3c85d454 100644 --- a/src/SMAPI/IModInfo.cs +++ b/src/SMAPI/IModInfo.cs @@ -5,5 +5,8 @@ namespace StardewModdingAPI { /// The mod manifest. IManifest Manifest { get; } + + /// Whether the mod is a content pack. + bool IsContentPack { get; } } } -- cgit