From db5c5f9e78f4fa22c28bc37cd619e98f55a3ce14 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 12 Mar 2018 21:01:10 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 15 bytes modified --- 21g30t1e75.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 7690c11..e6c35fd 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -130,9 +130,9 @@ GameLib.CustomCode.SnakeBody = function( case GameLib.CustomCode.BODY_TYPE_HEAD : break; case GameLib.CustomCode.BODY_TYPE_TAIL : - mesh.rotation.z = Math.PI; - mesh.updateInstance('rotation'); - position.x += 1; + this.mesh.rotation.z = Math.PI; + this.mesh.updateInstance('rotation'); + this.position.x += 1; break; default : throw new Error('unreachable statement');