diff --git a/actions/conditions.js b/actions/conditions.js index 66b09ab..198bc77 100644 --- a/actions/conditions.js +++ b/actions/conditions.js @@ -477,7 +477,7 @@ export default { }, required_amount: { slot: 13, - default_value: "Any", + default_value: "Any Amount", type: "static_option_select", options: [ "Any Amount", diff --git a/compiler/exportAction.js b/compiler/exportAction.js index db7303f..0b62db5 100644 --- a/compiler/exportAction.js +++ b/compiler/exportAction.js @@ -141,7 +141,7 @@ export default (fileName) => { context: "DEFAULT", contextTarget: {}, actions: actionobjs - }])); + }]), true); } }); } diff --git a/gui/Queue.js b/gui/Queue.js index b0c9dad..de6ffbb 100644 --- a/gui/Queue.js +++ b/gui/Queue.js @@ -132,7 +132,10 @@ const reloadButton = new Button(0, Renderer.screen.getHeight() - 20, 100, 20, "R register("guiRender", (x, y) => { if (!Player.getContainer()) return; - reloadButton.render(x, y); + if (Settings.reloadButton && queue.length > 0) { + reloadButton.setY(Renderer.screen.getHeight() - 20); + reloadButton.render(x, y); + } if (queue.length === 0) return; timeRemainingButton.setWidth(200); @@ -145,7 +148,7 @@ register("guiRender", (x, y) => { timeRemainingButton.setY(timeRemainingButton.getHeight() * 3); cancelButton.setY(timeRemainingButton.getHeight() * 3 + 20); timeRemainingButton.render(x, y); - if (Settings.reloadButton) cancelButton.render(x, y); + cancelButton.render(x, y); }); register("guiMouseClick", (x, y) => { @@ -159,7 +162,7 @@ register("guiMouseClick", (x, y) => { ) { queue.splice(0, queue.length - 1); } - if (Settings.reloadButton) if ( + if (Settings.reloadButton && queue.length > 0) if ( x > reloadButton.getX() && x < reloadButton.getX() + reloadButton.getWidth() && y > reloadButton.getY() && diff --git a/metadata.json b/metadata.json index 71e69e7..a120a44 100644 --- a/metadata.json +++ b/metadata.json @@ -2,7 +2,7 @@ "name": "HTSL", "creator": "BusterBrown1218", "description": "A Chat Triggers module made to make creating housing code easier!", - "version": "1.1.5", + "version": "1.1.6", "entry": "index.js", "requires": ["axios", "Vigilance"] } \ No newline at end of file diff --git a/update/changelog.txt b/update/changelog.txt index c1ad46d..f58d118 100644 --- a/update/changelog.txt +++ b/update/changelog.txt @@ -1,6 +1,3 @@ Patch 1.1.5: - Bugfixes -- Minor QoL changes -- Emergency reload button for debugging -- Fixes for MacOS support (thanks @NorthFailer) -- Separated save filename and save directory settings \ No newline at end of file +- Minor QoL changes \ No newline at end of file