Removed old Loc.GetString() use instances (#4155)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user