if (rollbackType == RollbackType.GLOBAL && entry.rollback(world.getBlockAt(loc))) {
entry.setUndoState(state);
undo.add(entry);
}
//Local rollback preview
else if (rollbackType == RollbackType.LOCAL && entry.rollbackPlayer(block, (Player)session.getSender())) {
entry.setUndoState(state);
undo.add(entry);
}
}