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
|
|
@ -117,7 +117,7 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
object toSet = null;
|
||||
bool shouldSet, shouldSend = true;
|
||||
|
|
@ -126,13 +126,13 @@ namespace Server.Gumps
|
|||
{
|
||||
case 1:
|
||||
{
|
||||
var text = info.GetTextEntry(0);
|
||||
var text = info.GetTextEntry(0)?.Trim();
|
||||
|
||||
if (text != null)
|
||||
if (text?.Length > 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
Types.TryParse(m_Property.PropertyType, text.Text, out toSet);
|
||||
Types.TryParse(m_Property.PropertyType, text, out toSet);
|
||||
shouldSet = true;
|
||||
}
|
||||
catch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue