How to get Player 1 or Player 2 in blueprints (replication)

Hey all,
I’m trying to figure out how to properly code different things based on whether it’s player 1 or player 2 in my co-op game. Something as simple as changing the character and weapon material based on which player it is for example.

I came up with a workaround, but I feel like there’s a better way to do this:

FYI this is implemented in the GameMode.