fix: Adds ISpanFormattable support to Serial (#1065)

This commit is contained in:
Kamron Batman 2022-06-14 18:39:46 -07:00 • committed by GitHub
parent 4b2b7e2277
commit b779d7737f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 269 additions and 204 deletions

View file

@ -3790,7 +3790,7 @@ namespace Server
}
}
public override string ToString() => $"0x{Serial.Value:X} \"{Name}\"";
public override string ToString() => $"{Serial} \"{Name}\"";
public virtual void SendSkillMessage()
{
@ -5311,8 +5311,8 @@ namespace Server
catch
{
Console.WriteLine(
"Warning: 0x{0:X}: Item must have a zero parameter constructor to be separated from a stack. '{1}'.",
oldItem.Serial.Value,
"Warning: {0}: Item must have a zero parameter constructor to be separated from a stack. '{1}'.",
oldItem.Serial,
oldItem.GetType().Name
);
return null;