fix: Optimizes gump relay info (Prep for Static Gumps) (#1698)
This commit is contained in:
parent
50fcee12dc
commit
cfe9e04c78
220 changed files with 364 additions and 402 deletions
|
|
@ -30,7 +30,7 @@ namespace Server.Engines.Help
|
|||
AddButton(405, 355, 2073, 2072, 0); // Cancel
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
if (info.ButtonID == 0)
|
||||
{
|
||||
|
|
@ -38,8 +38,7 @@ namespace Server.Engines.Help
|
|||
}
|
||||
else
|
||||
{
|
||||
var entry = info.GetTextEntry(0);
|
||||
var text = entry?.Text.Trim() ?? "";
|
||||
var text = info.GetTextEntry(0)?.Trim() ?? "";
|
||||
|
||||
if (text.Length == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue