Skip to content

Commit

Permalink
Address Issue with GetPlayersNum Method
Browse files Browse the repository at this point in the history
- New bool added to existing GetPlayersNum method, which causes beta/main incompatibility
- Game bug in new code, so changing to manually grabbing the player count
  • Loading branch information
data-bomb committed Jun 8, 2024
1 parent c20d110 commit 33bbed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Si_AFKManager/Si_AFK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You should have received a copy of the GNU General Public License
using System.Collections;
using UnityEngine;

[assembly: MelonInfo(typeof(AwayFromKeyboard), "AFK Manager", "1.3.1", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(AwayFromKeyboard), "AFK Manager", "1.3.2", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]
[assembly: MelonOptionalDependencies("Admin Mod")]

Expand Down Expand Up @@ -107,7 +107,7 @@ public override void OnLateInitializeMelon()

public static bool ServerAlmostFull()
{
if (NetworkGameServer.GetPlayersNum() + 2 >= NetworkGameServer.GetPlayersMax())
if (Player.Players.Count + 2 >= NetworkGameServer.GetPlayersMax())
{
return true;
}
Expand Down

0 comments on commit 33bbed6

Please sign in to comment.