Skip to content

Commit

Permalink
When Replacing only chisel a bit if it doesn’t match the placement.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Nov 5, 2016
1 parent 2f12998 commit 3f11a05
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -174,7 +174,10 @@ public int doAction(
{
if ( place.usesChisels() && chisels.isValid() )
{
extracted = ItemChisel.chiselBlock( chisels, player, vb, world, pos, i.side(), i.x(), i.y(), i.z(), extracted, spawnlist );
if ( !place.usesBits() || vb.get( i.x(), i.y(), i.z() ) != placeStateID )
{
extracted = ItemChisel.chiselBlock( chisels, player, vb, world, pos, i.side(), i.x(), i.y(), i.z(), extracted, spawnlist );
}
}

if ( place.usesBits() && bits.isValid() )
Expand Down

0 comments on commit 3f11a05

Please sign in to comment.