warn if putSign() is called with block id other than 63 or 68 issue #39
This commit is contained in:
parent
b6b5891112
commit
460f93ca8d
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,8 @@ var global = this;
|
||||||
};
|
};
|
||||||
|
|
||||||
var _putSign = function(texts, x, y, z, blockId, meta){
|
var _putSign = function(texts, x, y, z, blockId, meta){
|
||||||
|
if (blockId != 63 && blockId != 68)
|
||||||
|
throw new Error("Invalid Parameter: blockId must be 63 or 68");
|
||||||
putBlock(x,y,z,blockId,meta);
|
putBlock(x,y,z,blockId,meta);
|
||||||
var block = _getBlockObject(x,y,z);
|
var block = _getBlockObject(x,y,z);
|
||||||
state = block.state;
|
state = block.state;
|
||||||
|
|
Reference in a new issue