upd
This commit is contained in:
@@ -123,7 +123,7 @@ public sealed partial class Dedugan : Component
|
||||
}
|
||||
else if ( item.Definition is ClothingItemDefinition clothingDef )
|
||||
{
|
||||
StripByName( clothingDef.Name );
|
||||
StripByName( clothingDef.Description );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user