Skip to content

Commit

Permalink
Fixed API CommitChanges not triggering render updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Jan 12, 2017
1 parent 050f1f3 commit f426879
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Expand Up @@ -887,4 +887,9 @@ public void invalidate()
}
}

public void finishUpdate()
{
// nothin.
}

}
Expand Up @@ -191,7 +191,12 @@ public void completeEditOperation(
final VoxelBlob vb )
{
super.completeEditOperation( vb );
finishUpdate();
}

@Override
public void finishUpdate()
{
if ( renderChunk != null )
{
if ( renderChunk.singleInstanceMode )
Expand Down
1 change: 1 addition & 0 deletions src/main/java/mod/chiselsandbits/core/api/BitAccess.java
Expand Up @@ -127,6 +127,7 @@ public void commitChanges(
{
final VoxelBlobStateReference before = tile.getBlobStateReference();
tile.setBlob( blob, triggerUpdates );
tile.finishUpdate();
final VoxelBlobStateReference after = tile.getBlobStateReference();

UndoTracker.getInstance().add( w, p, before, after );
Expand Down

0 comments on commit f426879

Please sign in to comment.