Fix hook rethrow, package.json
This commit is contained in:
parent
c9c1e9c4c4
commit
85dd6cf45f
@ -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 <evert@lunasqu.ee>",
|
||||
"license": "MIT",
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user