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:
parent
712f089f81
commit
4eee508358
2 changed files with 78 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue