More MergeConsumables compat - allow swap/stack

This commit is contained in:
Tyfon
2024-08-31 10:18:21 -07:00
parent d733820021
commit a61f0f8156
2 changed files with 18 additions and 1 deletions

View File

@@ -103,4 +103,16 @@ public class Plugin : BaseUnityPlugin
return IsFikaPresent.Value;
}
private static bool? IsMergeConsumablesPresent;
public static bool MergeConsumablesPresent()
{
if (!IsMergeConsumablesPresent.HasValue)
{
IsMergeConsumablesPresent = Chainloader.PluginInfos.ContainsKey("com.lacyway.mc");
}
return IsMergeConsumablesPresent.Value;
}
}