Removed old Loc.GetString() use instances (#4155)

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
Galactic Chimp
2021-06-21 02:13:54 +02:00
committed by GitHub
parent 4a46fbe6dd
commit 392b820796
523 changed files with 3082 additions and 1551 deletions

View File

@@ -178,14 +178,14 @@ namespace Content.Server.VendingMachines
var entry = Inventory.Find(x => x.ID == id);
if (entry == null)
{
Owner.PopupMessageEveryone(Loc.GetString("Invalid item"));
Owner.PopupMessageEveryone(Loc.GetString("vending-machine-component-try-eject-invalid-item"));
Deny();
return;
}
if (entry.Amount <= 0)
{
Owner.PopupMessageEveryone(Loc.GetString("Out of stock"));
Owner.PopupMessageEveryone(Loc.GetString("vending-machine-component-try-eject-out-of-stock"));
Deny();
return;
}
@@ -211,7 +211,7 @@ namespace Content.Server.VendingMachines
{
if (sender == null || !accessReader.IsAllowed(sender))
{
Owner.PopupMessageEveryone(Loc.GetString("Access denied"));
Owner.PopupMessageEveryone(Loc.GetString("vending-machine-component-try-eject-access-denied"));
Deny();
return;
}