diff --git a/21g30t1e75.js b/21g30t1e75.js index c26fb27..90ffbf2 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -292,7 +292,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { body.mesh.updateInstance('visible'); } - if (body.orientation !== this.snake[index-1].orientation) { + if ( + body.orientation !== this.snake[index-1].orientation && + (index + 1) < this.snake.length + ) { /** * Our orientation changed - we should make a corner */