Names can have a hyphen as last character apparently.

This commit is contained in:
Ottermandias 2022-12-03 20:42:19 +01:00
parent 2e272f8e3a
commit e221c275a2
2 changed files with 7 additions and 2 deletions

View file

@ -345,7 +345,7 @@ public partial class ActorManager
last = current;
}
return part[^1] != '-';
return true;
}
private static bool CheckNamePart(ReadOnlySpan<byte> part, int minLength, int maxLength)
@ -375,7 +375,7 @@ public partial class ActorManager
last = current;
}
return part[^1] != (byte)'-';
return true;
}
/// <summary> Checks if the world is a valid public world or ushort.MaxValue (any world). </summary>