Fix vape use without check if doafter cancelled (#33245)
vape small fix
This commit is contained in:
@@ -122,8 +122,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
|
||||
private void OnVapeDoAfter(Entity<VapeComponent> entity, ref VapeDoAfterEvent args)
|
||||
{
|
||||
if (args.Handled
|
||||
|| args.Args.Target == null)
|
||||
if (args.Cancelled || args.Handled || args.Args.Target == null)
|
||||
return;
|
||||
|
||||
var environment = _atmos.GetContainingMixture(args.Args.Target.Value, true, true);
|
||||
|
||||
Reference in New Issue
Block a user