Disable Monomod for system build below Android M

This commit is contained in:
ZaneYork 2020-03-06 09:49:50 +08:00
parent aed072e926
commit de7aa34298
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ namespace StardewModdingAPI.Framework.Patching
/// <param name="patches">The patches to apply.</param>
public void Apply(params IHarmonyPatch[] patches)
{
if (Build.VERSION.SdkInt < BuildVersionCodes.M)
return;
if (!HarmonyDetourBridge.Initialized)
{
HarmonyDetourBridge.Init();