fix: Fixes parsing Rect3D and fixes AS contains name (#2333)

This commit is contained in:
Kamron Batman 2026-02-09 22:49:18 -08:00 committed by GitHub
parent d625ea5ba4
commit 0b8dcdfeaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;
}