Getty Images

Modern technology has allowed people to take their phones, as well as the power of the internet, with them anywhere they go. Pittsburgh Pirates second baseman Rodolfo Castro took his around the bases against the Arizona Diamondbacks on Tuesday night, and he violated MLB rules by doing so.

In the top of the fourth inning, Castro drew a walk before advancing to third base on a single by teammate Oneil Cruz. As he was sliding into third base, Castro's phone came tumbling out of his back pocket.

Not only was it an embarrassing moment for Castro, but in the process he actually violated an MLB rule that prohibits electronic devices on the field or in the dugout. The league is "looking into" the incident, and it is unknown whether Castro will be disciplined for his gaffe, per Ken Rosenthal of The Athletic.

To make the situation even worse for Castro, he had just been called up from the Triple-A Indianapolis Indians before the game. In his postgame press conference, Castro explained through an interpreter that he mistakenly left the phone in his pocket before taking the field.

"I don't think there's any professional ballplayer that would ever go out there with any intentions of taking a cell phone," Castro said, via ESPN. "It's horrible it happened to me. Obviously, it was very unintentional."

In the Pirates' 6-4 loss to the Diamondbacks, Castro went 0-for-3 with a walk. In 22 games with the Pirates this year, he is hitting .189 with one home run and four RBI.