fix: Fix NetStateGumps and other Gumps cleanup (#1919)
This commit is contained in:
parent
8282b00ca2
commit
6fe01488ef
7 changed files with 73 additions and 158 deletions
|
|
@ -244,7 +244,7 @@ namespace Server.Engines.ConPVP
|
|||
m_Challenger.SendMessage($"{m_Challenged.Name} has accepted the request.");
|
||||
m_Challenged.SendMessage($"You have accepted the request from {m_Challenger.Name}.");
|
||||
|
||||
foreach (var g in m_Challenger.GetAllGumps())
|
||||
foreach (var g in m_Challenger.GetGumps())
|
||||
{
|
||||
if (g is ParticipantGump pg && pg.Participant == m_Participant)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1541,7 +1541,7 @@ namespace Server.Engines.ConPVP
|
|||
p.Nullify(pl);
|
||||
pm.DuelPlayer = null;
|
||||
|
||||
foreach (var g in init.GetAllGumps())
|
||||
foreach (var g in init.GetGumps())
|
||||
{
|
||||
if (g is ParticipantGump pg && pg.Participant == p)
|
||||
{
|
||||
|
|
@ -1576,7 +1576,7 @@ namespace Server.Engines.ConPVP
|
|||
|
||||
var send = true;
|
||||
|
||||
foreach (var g in init.GetAllGumps())
|
||||
foreach (var g in init.GetGumps())
|
||||
{
|
||||
if (g is ParticipantGump pg && pg.Participant == p)
|
||||
{
|
||||
|
|
@ -1620,7 +1620,7 @@ namespace Server.Engines.ConPVP
|
|||
|
||||
var send = true;
|
||||
|
||||
foreach (var g in init.GetAllGumps())
|
||||
foreach (var g in init.GetGumps())
|
||||
{
|
||||
if (g is ParticipantGump pg && pg.Participant == p)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue