HumanoidCharacterProfileFix (#39333)
This commit is contained in:
@@ -693,10 +693,17 @@ namespace Content.Shared.Preferences
|
|||||||
var namingSystem = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<NamingSystem>();
|
var namingSystem = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<NamingSystem>();
|
||||||
return namingSystem.GetName(species, gender);
|
return namingSystem.GetName(species, gender);
|
||||||
}
|
}
|
||||||
|
public bool Equals(HumanoidCharacterProfile? other)
|
||||||
|
{
|
||||||
|
if (other is null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return ReferenceEquals(this, other) || MemberwiseEquals(other);
|
||||||
|
}
|
||||||
|
|
||||||
public override bool Equals(object? obj)
|
public override bool Equals(object? obj)
|
||||||
{
|
{
|
||||||
return ReferenceEquals(this, obj) || obj is HumanoidCharacterProfile other && Equals(other);
|
return obj is HumanoidCharacterProfile other && Equals(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
|
|||||||
Reference in New Issue
Block a user