Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 124 bytes modified
parent
29ea731772
commit
1d555ad20b
|
@ -110,12 +110,8 @@ GameLib.CustomCode.SnakeBody = function(
|
|||
position,
|
||||
rotation
|
||||
) {
|
||||
if (GameLib.Utils.UndefinedOrNull(bodyType)) {
|
||||
throw new Error('no body type specified');
|
||||
}
|
||||
this.bodyType = bodyType;
|
||||
|
||||
if (GameLib.Utils.UndefinedOrNull(mesh)) {
|
||||
if (GameLib.Utils.UndefinedOrNull(mesh)) {
|
||||
throw new Error('no mesh specified');
|
||||
}
|
||||
this.mesh = mesh.clone();
|
||||
|
|
Loading…
Reference in New Issue