diff --git a/MiraAPI/Patches/HudManagerPatches.cs b/MiraAPI/Patches/HudManagerPatches.cs index c5340b2..2312e40 100644 --- a/MiraAPI/Patches/HudManagerPatches.cs +++ b/MiraAPI/Patches/HudManagerPatches.cs @@ -228,6 +228,8 @@ public static class HudManagerPatches var comp = buttonObj.GetComponent(); KeybindManager.VanillaKeybinds[comp.GetType()].Button = comp; } + MiraApiSettings.OldButtonScaleFactor = + LocalSettingsTabSingleton.Instance.ButtonUIFactorSlider.Value; Coroutines.Start(CoResizeUI()); } diff --git a/MiraAPI/Utilities/Helpers.cs b/MiraAPI/Utilities/Helpers.cs index c89fc74..b537ef0 100644 --- a/MiraAPI/Utilities/Helpers.cs +++ b/MiraAPI/Utilities/Helpers.cs @@ -546,10 +546,6 @@ public static class Helpers public static bool IsRoleBlacklisted(this RoleBehaviour role) { // This should be patchable by mods when a vanilla role is meant to be replaced by a custom role. - if (role.Role is RoleTypes.Engineer) - { - return true; - } return false; } }