Skip to content

Commit

Permalink
Merge pull request #51 from Fishthedev/main
Browse files Browse the repository at this point in the history
Update Exploits.cs
  • Loading branch information
waxnet committed Mar 4, 2024
2 parents becc37b + 47faba9 commit 034994a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion netware/Modules/Exploits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public static void Execute()

if (Config.GetBool("exploits.player.antifreeze"))
{
LocalPlayer.Get()?.photonView?.gameObject?.SetActive(true);
PlayerController localPlayer = LocalPlayer.Get();
if (localPlayer?.gameObject?.activeInHierarchy == false)
{
PhotonNetwork.Instantiate("PolyPlayer", localPlayer?.gameObject?.transform.position, Quaternion.identity);
}
}

// gameplay
Expand Down
2 changes: 1 addition & 1 deletion netware/Utils/Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static BuildingNetworkController GetBuildingNetworkController()

public static void BecomeMasterClient()
{
PhotonNetwork.SetMasterClient(PhotonNetwork.LocalPlayer);
PhotonNetwork.CurrentRoom.SetMasterClient(PhotonNetwork.LocalPlayer);
}

public static FirebaseManager GetFirebaseManager()
Expand Down

0 comments on commit 034994a

Please sign in to comment.