Skip to content

Commit

Permalink
Update 1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterBrown1218 committed Sep 26, 2024
1 parent 3632441 commit 317741f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion actions/conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export default {
},
required_amount: {
slot: 13,
default_value: "Any",
default_value: "Any Amount",
type: "static_option_select",
options: [
"Any Amount",
Expand Down
2 changes: 1 addition & 1 deletion compiler/exportAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default (fileName) => {
context: "DEFAULT",
contextTarget: {},
actions: actionobjs
}]));
}]), true);
}
});
}
Expand Down
9 changes: 6 additions & 3 deletions gui/Queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) => {
Expand All @@ -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() &&
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
5 changes: 1 addition & 4 deletions update/changelog.txt
Original file line number Diff line number Diff line change
@@ -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
- Minor QoL changes

0 comments on commit 317741f

Please sign in to comment.