Fix incorrect slot calculation, and update submodule.
This commit is contained in:
parent
9ad63c37a6
commit
241d4c566f
2 changed files with 4 additions and 4 deletions
|
|
@ -2237,9 +2237,9 @@ namespace TShockAPI
|
|||
Netplay.ListenPort = file.ServerPort;
|
||||
}
|
||||
|
||||
if (file.MaxSlots > 235)
|
||||
file.MaxSlots = 235;
|
||||
Main.maxNetPlayers = file.MaxSlots + 20;
|
||||
if (file.MaxSlots > Main.maxPlayers - file.ReservedSlots)
|
||||
file.MaxSlots = Main.maxPlayers - file.ReservedSlots;
|
||||
Main.maxNetPlayers = file.MaxSlots + file.ReservedSlots;
|
||||
|
||||
Netplay.ServerPassword = "";
|
||||
if (!string.IsNullOrEmpty(_cliPassword))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue