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
|
|
@ -194,7 +194,7 @@ namespace Server.Gumps
|
|||
return finalResults;
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
var from = sender.Mobile;
|
||||
|
||||
|
|
@ -202,8 +202,7 @@ namespace Server.Gumps
|
|||
{
|
||||
case 1: // Search
|
||||
{
|
||||
var te = info.GetTextEntry(0);
|
||||
var match = te?.Text.Trim() ?? "";
|
||||
var match = info.GetTextEntry(0)?.Trim() ?? "";
|
||||
|
||||
if (match.Length < 3)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue