From ee91f31d0bd3fee8bd903b02a29f1c7627169384 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 13:22:37 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 94 bytes modified --- 21g30t1e75.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index f9c6ce3..43af194 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1120,9 +1120,9 @@ GameLib.CustomCode.prototype.createCorner = function(body, temp) { body.applyToMesh(); - body.orientation = backupOrientation; - body.backupMesh = body.mesh; + + body.backupMesh.orientation = body.orientation; if (temp.orientation === GameLib.CustomCode.ORIENTATION_UP) { body.backupMesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y; @@ -1140,6 +1140,10 @@ GameLib.CustomCode.prototype.createCorner = function(body, temp) { body.backupMesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X; } + body.orientation = backupOrientation; + + body.mesh.orientation = body.orientation; + body.mesh = this.createGameMesh(this.materialBreadCorner); body.mesh.position.z = 5;