@@ -16,14 +16,11 @@ public abstract partial class SharedVendingMachineSystem
|
||||
{
|
||||
if (!TryComp<WiresPanelComponent>(target, out var panel) || !panel.Open)
|
||||
{
|
||||
if (_net.IsServer)
|
||||
{
|
||||
Popup.PopupCursor(Loc.GetString("vending-machine-restock-needs-panel-open",
|
||||
("this", uid),
|
||||
("user", user),
|
||||
("target", target)),
|
||||
user);
|
||||
}
|
||||
Popup.PopupCursor(Loc.GetString("vending-machine-restock-needs-panel-open",
|
||||
("this", uid),
|
||||
("user", user),
|
||||
("target", target)),
|
||||
user);
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -39,11 +36,8 @@ public abstract partial class SharedVendingMachineSystem
|
||||
{
|
||||
if (!component.CanRestock.Contains(machineComponent.PackPrototypeId))
|
||||
{
|
||||
if (_net.IsServer)
|
||||
{
|
||||
Popup.PopupCursor(Loc.GetString("vending-machine-restock-invalid-inventory", ("this", uid), ("user", user),
|
||||
("target", target)), user);
|
||||
}
|
||||
Popup.PopupCursor(Loc.GetString("vending-machine-restock-invalid-inventory", ("this", uid), ("user", user),
|
||||
("target", target)), user);
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -78,13 +72,11 @@ public abstract partial class SharedVendingMachineSystem
|
||||
if (!_doAfter.TryStartDoAfter(doAfterArgs))
|
||||
return;
|
||||
|
||||
if (_net.IsServer)
|
||||
{
|
||||
Popup.PopupEntity(Loc.GetString("vending-machine-restock-start", ("this", uid), ("user", args.User),
|
||||
("target", target)),
|
||||
args.User,
|
||||
PopupType.Medium);
|
||||
}
|
||||
Popup.PopupPredicted(Loc.GetString("vending-machine-restock-start", ("this", uid), ("user", args.User),
|
||||
("target", target)),
|
||||
uid,
|
||||
args.User,
|
||||
PopupType.Medium);
|
||||
|
||||
Audio.PlayPredicted(component.SoundRestockStart, uid, args.User);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user