From 85dd6cf45f5d3b71306e9f791c27616313b6099c Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Fri, 29 Nov 2019 20:21:06 +0200 Subject: [PATCH] Fix hook rethrow, package.json --- package.json | 6 +++--- src/player.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 73a010a..c16bd43 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "aaaidk", + "name": "hook-miner", "version": "0.0.1", - "description": "idk", + "description": "A HTML5 clone of the classic Gold Miner Flash game", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack -p", "watch": "webpack -w --mode=development" }, - "keywords": [], + "keywords": ["game"], "private": true, "author": "Evert \"Diamond\" Prants ", "license": "MIT", diff --git a/src/player.js b/src/player.js index 710729b..3c52906 100644 --- a/src/player.js +++ b/src/player.js @@ -77,7 +77,7 @@ class Hook extends GameObject { this.rd = 1 } - if (ctx.mouse['btn0'] && this.d === 0) { + if (ctx.mouse['btn0'] && this.d === 0 && !this.obj) { this.d = 0 this.md = 1 }