From 17c4daf6aa1ca57d663ddc31b362afd3b204d670 Mon Sep 17 00:00:00 2001 From: Calamariclam <76179328+Calamariclam@users.noreply.github.com> Date: Mon, 3 Aug 2026 01:54:14 -0700 Subject: [PATCH] Update block-blast.js Hopefully fixes button function issue. There's probably other issues but this is the only thing I got an error message for. --- scripts/block-blast.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/block-blast.js b/scripts/block-blast.js index 763e0ba..a4765f2 100644 --- a/scripts/block-blast.js +++ b/scripts/block-blast.js @@ -111,10 +111,10 @@ this.update() = { // Check if the mouse is inside the button's boundaries this.isHovering = - this.x >= this.x && - this.x <= this.x + this.w && - this.y >= this.y && - this.y <= this.y + this.h + mousePosition.x >= this.x && + mousePosition.x <= this.x + this.w && + mousePosition.y >= this.y && + mousePosition.y <= this.y + this.h if(this.key !== undefined && keys[this.key]){ this.isHovering = true }