We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdc0257 commit fcee074Copy full SHA for fcee074
2 files changed
S1API/Entities/NPC.cs
@@ -592,7 +592,7 @@ public bool ConversationCanBeHidden
592
/// </summary>
593
/// <typeparam name="T">The NPC class to get the instance of.</typeparam>
594
/// <returns></returns>
595
- public static NPC? Get<T>() =>
+ public static NPC? Get<T>() where T : NPC =>
596
All.FirstOrDefault(npc => npc.GetType() == typeof(T));
597
598
#endregion
S1API/S1API.csproj
@@ -17,6 +17,7 @@
17
<Platforms>AnyCPU</Platforms>
18
<RootNamespace>S1API</RootNamespace>
19
<GenerateDocumentationFile>true</GenerateDocumentationFile>
20
+ <LangVersion>latest</LangVersion>
21
</PropertyGroup>
22
23
<PropertyGroup Condition="'$(Configuration)' == 'MonoMelon' or '$(Configuration)' == 'MonoBepInEx'">
0 commit comments