Machine Gun Kelly and G-Eazy's beef is officially in the past—and one source has confirmed to XXL that it's all thanks to Kid Cudi.

MGK surprised fans by appearing on stage during G-Eazy's performance at the opening of Palms Casino Resort's KAOS nightclub in Las Vegas Sunday night (April 7). In a fan-captured clip, MGK can be seen performing his track "Loco" after G brought him out, and the pair share an embrace before the Cleveland rapper leaves the stage.

Speaking with XXL, one source claimed this wasn't the first time the pair have come together since their public beef last summer. The source says the issues were actually squashed about a month ago in Europe when Kid Cudi brought them together at a dinner.

The beef began when MGK dissed G-Eazy in his Funkmaster Flex freestyle late last summer. On the track, MGK let loose a barrage of disrespectful bars.

“Only Eazy I fuck with is E/I seen he dyed his hair and got a hanging earring/I fucked his girl/Now he looks like this shit is overbearing," MGK rapped. "How dare him, I dare him/Don’t think about comparing/Now turn that frat rap off, I get sick of hearing."

In less than 24 hours, G had his response on wax.

"Someone might've lit a fire inside the soul of me/Your shots just graze me, I'm standing, they put a hole in me/I answer to no one, nobody can get control of me," Gerald raps on "Bad Boy." "MGK please stop trolling me, get over me/You wanna be me, you’re mad that you’re not as big as me/I'm everywhere, I'm your nightmare, you can't get rid of me."

In response, MGK posted a side-by-side photo of himself and G-Eazy on Instagram to compare the fact that G had dyed his hair blonde, much like MGK has been sporting since the onset of his career. G soon followed up by posing with Eminem in a photo—who was also beefing with MGK at the time—but not much more happened in their beef from there. Now it's all water under the bridge!

Watch G-Eazy and MGK come together in Vegas below.

See Hip-Hop Fans Name The Most Disrespectful Diss Track of All Time

More From XXL