From 0763174494578ea48fc2423e55f2266502258731 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 4 Apr 2021 00:10:42 +0000 Subject: [PATCH] Fix explosions --- webclient/src/spaceport/Ship.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webclient/src/spaceport/Ship.js b/webclient/src/spaceport/Ship.js index 1f324e0..7d4a2bc 100644 --- a/webclient/src/spaceport/Ship.js +++ b/webclient/src/spaceport/Ship.js @@ -77,7 +77,6 @@ export class Ship { if (this.life < 0 && !this.flyin && !this.exploded) { this.mesh.geometry = burstGeo; this.mesh.material.transparent = true; - this.mesh.material.opacity *= 0.95; this.exploded = true; this.mesh.scale.x = 1; this.mesh.scale.y = 1; @@ -85,6 +84,7 @@ export class Ship { } if (this.exploded) { + this.mesh.material.opacity *= 0.95; this.mesh.scale.x *= 1.1; this.mesh.scale.y *= 1.1; this.mesh.scale.z *= 1.1;