warn if putSign() is called with block id other than 63 or 68 issue #39

This commit is contained in:
walterhiggins 2013-01-26 09:57:43 +00:00
parent b6b5891112
commit 460f93ca8d

View file

@ -52,6 +52,8 @@ var global = this;
};
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);
var block = _getBlockObject(x,y,z);
state = block.state;