So it'll redo the brick, then undo any bricks from before?
I don't quite understand what you mean; Are you asking if it'll remove bricks which were placed in it's place if it is re-done? If so, that won't happen. If there are bricks in the deleted block's place and you attempt to redo it, it simply won't be placed. It will then be removed from the undo stack, making it impossible to recover the brick.
Unless you were asking if pressing the undo keybind will both redo the brick and delete any brick that you placed before deleting that brick; in which case, it will function normally. Which means pressing the undo keybind will undo the last thing you did. In case you don't quite understand, here's a visual representation:
Let's say this is your current undo stack:
Placed a brick -> Placed another brick -> Deleted a brick (can be redone by my addon) -> Placed another brick
If you press the undo keybind at this time, then it will remove the last entry on that list, making it look like:
Placed a brick -> Placed another brick -> Deleted a brick (can be redone by my addon)
So, if you press it again at this time, it will redo the brick and then remove the action from the undo stack.
If I was wrong about what you meant to ask, just tell me