Add empty contents check for vape (#16123)
This commit is contained in:
@@ -50,6 +50,14 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
|| _foodSystem.IsMouthBlocked(args.Target.Value, args.User))
|
||||
return;
|
||||
|
||||
if (solution.Contents.Count == 0)
|
||||
{
|
||||
_popupSystem.PopupEntity(
|
||||
Loc.GetString("vape-component-vape-empty"), args.Target.Value,
|
||||
args.User);
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.Target == args.User)
|
||||
{
|
||||
delay = comp.UserDelay;
|
||||
@@ -166,4 +174,4 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
args.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user