fix: Adds logging for possible duplicate objects being added (#1238)

Adds logging for `World.AddEntity<T>` and `World.AddGuild` just in case.
This commit is contained in:
Kamron Batman 2022-11-10 20:49:51 -08:00 • committed by GitHub
parent 712f089f81
commit 4eee508358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 78 additions and 6 deletions

View file

@ -30,13 +30,13 @@ public readonly struct Serial : IComparable<Serial>, IComparable<uint>, IEquatab
public bool IsMobile
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => Value > 0 && Value < World.ItemOffset;
get => Value is > 0 and < World.ItemOffset;
}
public bool IsItem
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => Value >= World.ItemOffset && Value < World.MaxItemSerial;
get => Value is >= World.ItemOffset and < World.MaxItemSerial;
}
public bool IsValid