Skip to content

Commit

Permalink
Chisel Bits when Undoing rather then Phasing them into the void.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Nov 5, 2016
1 parent 8232759 commit 2f12998
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/mod/chiselsandbits/network/packets/PacketUndo.java
Expand Up @@ -156,6 +156,19 @@ private boolean apply(
}
else if ( inAfter != 0 )
{
if ( inBefore != 0 )
{
if ( selected.isValid() )
{
spawnedItem = ItemChisel.chiselBlock( selected, player, target, world, pos, side, bi.x, bi.y, bi.z, spawnedItem, spawnlist );
}
else
{
successful = false;
break;
}
}

final ItemStackSlot bit = ModUtil.findBit( player, pos, inAfter );
if ( ModUtil.consumeBagBit( bags, inAfter, 1 ) == 1 )
{
Expand Down

0 comments on commit 2f12998

Please sign in to comment.