From f7e571b26a9386ce3e69bf0c25a40ba6c7b0a979 Mon Sep 17 00:00:00 2001 From: Mute Date: Sun, 10 Jul 2022 07:07:09 +0000 Subject: [PATCH] Update 'mbchc-local.user.js' --- mbchc-local.user.js | 6 ++++++ 1 file changed, 6 insertions(+) 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))