Fix slots bug
This commit is contained in:
parent
3350418f5d
commit
8521241ab7
2 changed files with 5 additions and 2 deletions
|
|
@ -549,9 +549,9 @@ namespace TShockAPI
|
|||
player.Group = Users.GetGroupForIP(player.IP);
|
||||
}
|
||||
|
||||
if (TShock.Utils.ActivePlayers() + 20 > Config.MaxSlots)
|
||||
if (TShock.Utils.ActivePlayers() + 1 > Config.MaxSlots + 20)
|
||||
{
|
||||
TShock.Utils.ForceKick(player, Config.ServerFullReason);
|
||||
TShock.Utils.ForceKick(player, Config.ServerFullNoReservedReason);
|
||||
handler.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue