fix(core): Fixes buy packet (#453)
- [X] Fixes buy packet - [X] Changes from null to empty string in gump initial text
This commit is contained in:
parent
995149ad01
commit
50e9b367fc
7 changed files with 12 additions and 12 deletions
|
|
@ -48,7 +48,7 @@ namespace Server.Gumps
|
|||
public bool Scrollbar { get; set; }
|
||||
|
||||
public override string Compile(OrderedHashSet<string> strings) =>
|
||||
$"{{ htmlgump {X} {Y} {Width} {Height} {strings.GetOrAdd(Text)} {(Background ? 1 : 0)} {(Scrollbar ? 1 : 0)} }}";
|
||||
$"{{ htmlgump {X} {Y} {Width} {Height} {strings.GetOrAdd(Text ?? "")} {(Background ? 1 : 0)} {(Scrollbar ? 1 : 0)} }}";
|
||||
|
||||
public override void AppendTo(ref SpanWriter writer, OrderedHashSet<string> strings, ref int entries, ref int switches)
|
||||
{
|
||||
|
|
@ -63,7 +63,7 @@ namespace Server.Gumps
|
|||
writer.WriteAscii(' ');
|
||||
writer.WriteAscii(Height.ToString());
|
||||
writer.WriteAscii(' ');
|
||||
writer.WriteAscii(strings.GetOrAdd(Text).ToString());
|
||||
writer.WriteAscii(strings.GetOrAdd(Text ?? "").ToString());
|
||||
writer.WriteAscii(' ');
|
||||
writer.WriteAscii(Background ? '1' : '0');
|
||||
writer.WriteAscii(' ');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue