Skip to content
Permalink
Browse files
Don't allow teleportation to players in a minigame
Fixes #716
  • Loading branch information
RussellLVP committed Jul 9, 2020
1 parent 84623ea commit fee1e9826b618b49cf7fea56eca4d5117a13904b
Showing 1 changed file with 3 additions and 0 deletions.
@@ -369,6 +369,9 @@ IsPlayerInMinigame(playerId) {
if (PlayerActivity(playerId)->isJavaScriptActivity())
return 1;

if (PlayerSyncedData(playerId)->hasMinigameName())
return 1;

if (IsPlayerStatusMinigame(playerId) && MinigameTypeInfo[Progress] > 1)
return 1;

0 comments on commit fee1e98

Please sign in to comment.