Remove block from inventory when placing it

This commit is contained in:
C109 2016-04-14 19:14:27 -04:00
parent 7f231c5234
commit a61dcd6fc3

View file

@ -33,6 +33,9 @@ module.exports.player=function(player,serv)
pitch: 0.8
});
}
player.inventory.selectedItem.count--;
if(heldItem.blockId!=323){
player.changeBlock(position, id, damage);
}else if(direction==1){