diff --git a/21g30t1e75.js b/21g30t1e75.js index e4a24c7..60443bd 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -500,9 +500,11 @@ GameLib.CustomCode.prototype.createGameObject = function( array = this.food; } + var isTail = false; + if (objectType === GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY) { - switch (type) { + switch (type) { case GameLib.CustomCode.BODY_TYPE_BREAD_BACON : mesh = this.createGameMesh(this.materialBreadBacon); break; @@ -526,6 +528,7 @@ GameLib.CustomCode.prototype.createGameObject = function( break; case GameLib.CustomCode.BODY_TYPE_BREAD_TAIL : mesh = this.createGameMesh(this.materialBreadTail); + isTail = true; break; case GameLib.CustomCode.BODY_TYPE_BREAD_CORNER : mesh = this.createGameMesh(this.materialBreadCorner); @@ -555,7 +558,10 @@ GameLib.CustomCode.prototype.createGameObject = function( type, mesh, position, - orientation + orientation, + null, + null, + isTail ) gameObject.applyToMesh(true); break;