This commit is contained in:
Oscar
2025-06-26 21:12:11 +03:00
parent 8b61aa1d7b
commit 793165bb03
66 changed files with 89 additions and 95 deletions

View File

@@ -123,7 +123,7 @@ public sealed partial class Dedugan : Component
}
else if ( item.Definition is ClothingItemDefinition clothingDef )
{
StripByName( clothingDef.Name );
StripByName( clothingDef.Description );
}
}

View File

@@ -140,7 +140,12 @@ partial class Dedugan
[Rpc.Broadcast]
public void StripByName( string name )
{
CurrentClothing.Clothing.RemoveAll( entry => entry.Clothing.Title == name );
CurrentClothing.Clothing.RemoveAll( entry =>
{
Log.Info( entry.Clothing.ResourceName.Replace( "_", "" ) );
return entry.Clothing.ResourceName.Replace( "_", "" ).Replace( " ", "" ) == name;
} );
CurrentClothing.Normalize();
CurrentClothing.Apply( Renderer );