Remove unneeded Loc.GetString (#35739)

This commit is contained in:
MilenVolf
2025-03-09 13:06:11 +03:00
committed by GitHub
parent 39a8bae2d2
commit bcf3390c88

View File

@@ -61,7 +61,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));
}
}
}