From a6aafeb99eb9a9ddbc4d3fdac2f27959346d72d5 Mon Sep 17 00:00:00 2001 From: DeathWeasel1337 Date: Sun, 28 Feb 2021 14:59:07 -0600 Subject: [PATCH] Fix error in KK school mode --- src/DynamicBoneEditor.Core/DynamicBoneEditor.cs | 2 +- src/DynamicBoneEditor.Core/UI/DynamicBoneEditor.UI.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DynamicBoneEditor.Core/DynamicBoneEditor.cs b/src/DynamicBoneEditor.Core/DynamicBoneEditor.cs index cb56b156..3206b214 100644 --- a/src/DynamicBoneEditor.Core/DynamicBoneEditor.cs +++ b/src/DynamicBoneEditor.Core/DynamicBoneEditor.cs @@ -22,7 +22,7 @@ public class Plugin : BaseUnityPlugin public const string PluginGUID = "com.deathweasel.bepinex.dynamicboneeditor"; public const string PluginName = "Dynamic Bone Editor"; public const string PluginNameInternal = Constants.Prefix + "_DynamicBoneEditor"; - public const string PluginVersion = "1.0"; + public const string PluginVersion = "1.0.1"; internal static new ManualLogSource Logger; internal static Plugin PluginInstance; diff --git a/src/DynamicBoneEditor.Core/UI/DynamicBoneEditor.UI.cs b/src/DynamicBoneEditor.Core/UI/DynamicBoneEditor.UI.cs index 7b5964db..c8705d18 100644 --- a/src/DynamicBoneEditor.Core/UI/DynamicBoneEditor.UI.cs +++ b/src/DynamicBoneEditor.Core/UI/DynamicBoneEditor.UI.cs @@ -237,6 +237,8 @@ public static void ShowUI(int dynamicBoneIndex) public static void ToggleButtonVisibility() { + if (!MakerAPI.InsideMaker) + return; if (DynamicBoneEditorButton == null) return;