fix: Fixes parsing Rect3D and fixes AS contains name (#2333)
This commit is contained in:
parent
d625ea5ba4
commit
0b8dcdfeaf
2 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ namespace Server;
|
|||
|
||||
[NoSort]
|
||||
[PropertyObject]
|
||||
public struct Rectangle3D : IEquatable<Rectangle3D>, ISpanFormattable
|
||||
public struct Rectangle3D : IEquatable<Rectangle3D>, ISpanFormattable, ISpanParsable<Rectangle3D>
|
||||
{
|
||||
private Point3D _start;
|
||||
private Point3D _end;
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ public class AdvancedSearchThreadWorker
|
|||
|
||||
private AdvancedSearchResult DoItemSearch(Item item)
|
||||
{
|
||||
if (_filter.FilterName && !string.IsNullOrWhiteSpace(_filter.Name) && !item.Name.InsensitiveEquals(_filter.Name))
|
||||
if (_filter.FilterName && !string.IsNullOrWhiteSpace(_filter.Name) && !(item.Name ?? item.ItemData.Name).InsensitiveContains(_filter.Name))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
@ -206,7 +206,7 @@ public class AdvancedSearchThreadWorker
|
|||
|
||||
private AdvancedSearchResult DoMobileSearch(Mobile mobile)
|
||||
{
|
||||
if (_filter.FilterName && !string.IsNullOrWhiteSpace(_filter.Name) && !mobile.Name.InsensitiveEquals(_filter.Name))
|
||||
if (_filter.FilterName && !string.IsNullOrWhiteSpace(_filter.Name) && !mobile.Name.InsensitiveContains(_filter.Name))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue