Localize secret stash part names (#11724)

This commit is contained in:
Morb
2022-10-09 22:24:07 +03:00
committed by GitHub
parent 2f6175de32
commit c6e9ff8119
5 changed files with 13 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ namespace Content.Server.Storage.EntitySystems
private void OnInit(EntityUid uid, SecretStashComponent component, ComponentInit args)
{
// set default secret part name
if (component.SecretPartName == "")
if (component.SecretPartName == string.Empty)
{
var meta = EntityManager.GetComponent<MetaDataComponent>(uid);
var entityName = Loc.GetString("comp-secret-stash-secret-part-name", ("name", meta.EntityName));