mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-24 09:11:43 +00:00
Remove block from inventory when placing it
This commit is contained in:
parent
7f231c5234
commit
a61dcd6fc3
1 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,9 @@ module.exports.player=function(player,serv)
|
||||||
pitch: 0.8
|
pitch: 0.8
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.inventory.selectedItem.count--;
|
||||||
|
|
||||||
if(heldItem.blockId!=323){
|
if(heldItem.blockId!=323){
|
||||||
player.changeBlock(position, id, damage);
|
player.changeBlock(position, id, damage);
|
||||||
}else if(direction==1){
|
}else if(direction==1){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue