Remove unneeded Loc.GetString (#35739)

This commit is contained in:
MilenVolf 2025-03-09 13:06:11 +03:00 committed by deltanedas
parent 8e87485596
commit eeb2854dec
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ namespace Content.Shared.Humanoid
public string GetLastName(SpeciesPrototype speciesProto)
{
return Loc.GetString(_random.Pick(_prototypeManager.Index<LocalizedDatasetPrototype>(speciesProto.LastNames).Values));
return _random.Pick(_prototypeManager.Index<LocalizedDatasetPrototype>(speciesProto.LastNames));
}
}
}