Remove localization manager dependencies from components (#1864)
Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
@@ -85,9 +85,9 @@ namespace Content.Server.GameObjects.Components.Items
|
||||
void IExamine.Examine(FormattedMessage message, bool inDetailsRange)
|
||||
{
|
||||
//No details check, since the sprite updates to show the side.
|
||||
var loc = IoCManager.Resolve<ILocalizationManager>();
|
||||
message.AddMarkup(loc.GetString("A dice with [color=lightgray]{0}[/color] sides.\n" +
|
||||
"It has landed on a [color=white]{1}[/color].", _sides, _currentSide));
|
||||
message.AddMarkup(Loc.GetString(
|
||||
"A dice with [color=lightgray]{0}[/color] sides.\n" + "It has landed on a [color=white]{1}[/color].",
|
||||
_sides, _currentSide));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user