Disable Monomod for system build below Android M
This commit is contained in:
parent
aed072e926
commit
de7aa34298
|
@ -29,6 +29,8 @@ namespace StardewModdingAPI.Framework.Patching
|
||||||
/// <param name="patches">The patches to apply.</param>
|
/// <param name="patches">The patches to apply.</param>
|
||||||
public void Apply(params IHarmonyPatch[] patches)
|
public void Apply(params IHarmonyPatch[] patches)
|
||||||
{
|
{
|
||||||
|
if (Build.VERSION.SdkInt < BuildVersionCodes.M)
|
||||||
|
return;
|
||||||
if (!HarmonyDetourBridge.Initialized)
|
if (!HarmonyDetourBridge.Initialized)
|
||||||
{
|
{
|
||||||
HarmonyDetourBridge.Init();
|
HarmonyDetourBridge.Init();
|
||||||
|
|
Loading…
Reference in New Issue