From 11049f2f123a2bd9ae98583ad3587fa24ff2a3be Mon Sep 17 00:00:00 2001 From: Diego Marcos Date: Mon, 29 Oct 2018 17:41:09 -0700 Subject: [PATCH] Mines dont trigger a miss --- src/components/beat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/beat.js b/src/components/beat.js index 923c800..0230ec2 100644 --- a/src/components/beat.js +++ b/src/components/beat.js @@ -361,7 +361,7 @@ AFRAME.registerComponent('beat', { missHit: function (hand) { var missEl = hand === 'left' ? this.missElLeft : this.missElRight; - if (!missEl) { return; } + if (!missEl || this.data.type === 'mine') { return; } missEl.object3D.position.copy(this.el.object3D.position); missEl.object3D.position.y += 0.2; missEl.object3D.position.z -= 0.5;