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');