diff --git a/21g30t1e75.js b/21g30t1e75.js index f96c9a0..787be2c 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -967,29 +967,28 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { * Update the grid with our new body */ this.grid[body.position.x][body.position.y] = body; - - if (body.backupMesh) { - /** + } + + if (body.backupMesh) { + /** * We used to be a corner, change back * @type {null} */ - body.mesh.geometry = null; + body.mesh.geometry = null; - body.mesh.materials = null; + body.mesh.materials = null; - body.mesh.remove(); + body.mesh.remove(); - body.mesh = body.backupMesh; + body.mesh = body.backupMesh; - body.backupMesh = null; + body.backupMesh = null; - body.mesh.visible = true; + body.mesh.visible = true; - body.mesh.updateInstance('visible'); - - body.mesh.updateInstance('position'); - } + body.mesh.updateInstance('visible'); + body.mesh.updateInstance('position'); } if (backup.orientation !== temp.orientation) {