We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b01e68a commit af3cd66Copy full SHA for af3cd66
src/networking/transmission.py
@@ -192,8 +192,7 @@ def get_host_pri() -> UObject:
192
Returns:
193
The hosts's PlayerReplicationInfo.
194
"""
195
- # Seems they're always entry 0?
196
- return ENGINE.GetCurrentWorldInfo().GRI.PRIArray[0]
+ return next(filter(lambda pri: pri.bIsPartyLeader, ENGINE.GetCurrentWorldInfo().GRI.PRIArray))
197
198
199
@hook("WillowGame.WillowPlayerController:ClientMessage", immediately_enable=True)
0 commit comments