]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove unneeded Loc.GetString (#35739)
authorMilenVolf <63782763+MilenVolf@users.noreply.github.com>
Sun, 9 Mar 2025 10:06:11 +0000 (13:06 +0300)
committerGitHub <noreply@github.com>
Sun, 9 Mar 2025 10:06:11 +0000 (11:06 +0100)
Content.Shared/Humanoid/NamingSystem.cs

index f3af6b5aa14e802933d4233452c91af16aa65c45..eecc192d48f906ba7783297cd2e57ae695481900 100644 (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));
         }
     }
 }