fix: Removes redundant code in GumpSystem (#1921)
This commit is contained in:
parent
76bdc7ac02
commit
aa68d96807
2 changed files with 22 additions and 25 deletions
|
|
@ -24,6 +24,7 @@ namespace Server.Gumps;
|
|||
|
||||
public readonly ref struct NetStateGumps
|
||||
{
|
||||
private const int GumpCap = 512;
|
||||
private static readonly ILogger _logger = LogFactory.GetLogger(typeof(NetStateGumps));
|
||||
|
||||
private readonly List<BaseGump> _gumps;
|
||||
|
|
@ -102,7 +103,7 @@ public readonly ref struct NetStateGumps
|
|||
}
|
||||
}
|
||||
|
||||
if (_gumps.Count >= GumpSystem.GumpCap)
|
||||
if (_gumps.Count >= GumpCap)
|
||||
{
|
||||
_logger.Information("Exceeded gump cap, disconnecting...");
|
||||
_state.Disconnect("Exceeded gump cap.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue