diff --git a/mbchc-local.user.js b/mbchc-local.user.js index 3c94429..26859e3 100644 --- a/mbchc-local.user.js +++ b/mbchc-local.user.js @@ -503,6 +503,12 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER } return(next(args)) }) + window.MBCHC.sdk.hookFunction("ElementCreateInput", 0, (args, next) => { + let [ID, Type, Value, MaxLength] = args + let result = next(args) + if (("bce_LayerPriority" === ID) && window.CurrentCharacter && window.CurrentCharacter.FocusGroup && window.InventoryLocked(window.CurrentCharacter, window.CurrentCharacter.FocusGroup.Name, true)) window.ElementSetAttribute(ID, "disabled", true) + return(result) + }) window.MBCHC.remove_bce_hook = window.MBCHC.sdk.hookFunction("MainRun", 0, (args, next) => { if (window.bce_ActivityTriggers) window.MBCHC.patch_bce() return(next(args))