From 88a2bab3e9e67fbd60b9aa4af4b2f9acc11f3a3b Mon Sep 17 00:00:00 2001 From: Obvious Alex C <76855369+David-Orangemoon@users.noreply.github.com> Date: Tue, 19 Mar 2024 19:55:37 -0400 Subject: [PATCH] Update Extension_Builder.js --- Extension_Builder/Extension_Builder.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Extension_Builder/Extension_Builder.js b/Extension_Builder/Extension_Builder.js index 0180a3c..6aede94 100644 --- a/Extension_Builder/Extension_Builder.js +++ b/Extension_Builder/Extension_Builder.js @@ -127,6 +127,11 @@ class ExtensionBuilder { return this.internal.JSON.blocks[blockIndex]; }; + this.internal.JSON.blocks[blockIndex].allowMonitor = () => { + this.internal.JSON.blocks[blockIndex].disableMonitor = false; + return this.internal.JSON.blocks[blockIndex]; + }; + this.internal.JSON.blocks[blockIndex].stopMoniter = () => { this.internal.JSON.blocks[blockIndex].disableMonitor = true; return this.internal.JSON.blocks[blockIndex]; @@ -197,15 +202,12 @@ class ExtensionBuilder { this.addLabel = (Label) => { Label = Label || "N/A"; const LabelJSON = { - opcode: "__NOUSEOPCODE", blockType: "label", text: Label, }; this.internal.JSON.blocks.push(LabelJSON); }; - - this.__NOUSEOPCODE = () => {}; //Seperate this big chunk from the rest this.internal.createBase = () => { extensionName = extensionName || "Extension";