Skip to content

Commit

Permalink
Its not really post unless its after changing the state...
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Nov 9, 2016
1 parent eec0a0e commit 41c17db
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -246,13 +246,13 @@ public void setState(
final VoxelBlobStateReference originalRef = getBasicState().getValue( BlockChiseled.UProperty_VoxelBlob );
final VoxelBlobStateReference newRef = state.getValue( BlockChiseled.UProperty_VoxelBlob );

this.state = state;

if ( originalRef != null && newRef != null && !newRef.equals( originalRef ) )
{
final EventBlockBitPostModification bmm = new EventBlockBitPostModification( getWorld(), getPos() );
MinecraftForge.EVENT_BUS.post( bmm );
}

this.state = state;
}

@Override
Expand Down

0 comments on commit 41c17db

Please sign in to comment.