Fix stack localization (#3455)

This commit is contained in:
AJCM-git
2021-02-28 20:02:03 -04:00
committed by GitHub
parent f3442845a6
commit 26378f3869
3 changed files with 13 additions and 10 deletions

View File

@@ -29,11 +29,11 @@ namespace Content.Client.GameObjects.Components
{
var valueChanged = value != Count;
base.Count = value;
if (valueChanged)
{
_appearanceComponent?.SetData(StackVisuals.Actual, Count);
}
_uiUpdateNeeded = true;
@@ -76,8 +76,8 @@ namespace Content.Client.GameObjects.Components
_parent._uiUpdateNeeded = false;
_label.SetMarkup(Loc.GetString("Count: [color=white]{0}[/color]", _parent.Count));
_label.SetMarkup(Loc.GetString("comp-stack-status", ("count", _parent.Count)));
}
}
}
}
}