Add max range for being restricted
Change max reserved slots to 20
This commit is contained in:
parent
31c4e1a37b
commit
14e2d8ca46
3 changed files with 7 additions and 4 deletions
|
|
@ -1243,9 +1243,9 @@ namespace TShockAPI
|
|||
Netplay.serverPort = file.ServerPort;
|
||||
}
|
||||
|
||||
if (file.MaxSlots > 250)
|
||||
file.MaxSlots = 250;
|
||||
Main.maxNetPlayers = file.MaxSlots + 5;
|
||||
if (file.MaxSlots > 235)
|
||||
file.MaxSlots = 235;
|
||||
Main.maxNetPlayers = file.MaxSlots + 20;
|
||||
|
||||
Netplay.spamCheck = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue