From de1408ee32e4bdaf3ace35d49e04e30262f6da81 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 23 Mar 2018 16:29:54 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 96 bytes modified --- 21g30t1e75.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index c678228..a790888 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1249,22 +1249,15 @@ GameLib.CustomCode.prototype.restore = function() { * Restore our backup snake */ this.snake = this.backupSnake.map( - function(body) { - - body.applyToMesh(); - - this.grid[body.position.x][body.position.y] = body; - - return body; + function(body) { + return body.clone(); }.bind(this) ); this.state.orientation = this.backupOrientation; this.visualizeGrid(); - - this.backup(); - + }.bind(this) /**