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;
|
Netplay.ListenPort = file.ServerPort;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.MaxSlots > 235)
|
if (file.MaxSlots > Main.maxPlayers - file.ReservedSlots)
|
||||||
file.MaxSlots = 235;
|
file.MaxSlots = Main.maxPlayers - file.ReservedSlots;
|
||||||
Main.maxNetPlayers = file.MaxSlots + 20;
|
Main.maxNetPlayers = file.MaxSlots + file.ReservedSlots;
|
||||||
|
|
||||||
Netplay.ServerPassword = "";
|
Netplay.ServerPassword = "";
|
||||||
if (!string.IsNullOrEmpty(_cliPassword))
|
if (!string.IsNullOrEmpty(_cliPassword))
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit d3b7d9f4575602f468cf1e009ebc4bc5b79547c4
|
Subproject commit bc9f7c69becb60816fc1e4587bbca15991231317
|
||||||
Loading…
Add table
Add a link
Reference in a new issue