Add interaction checks to all interactions (#923)
This commit is contained in:
@@ -2,6 +2,7 @@ using System;
|
||||
using Content.Server.GameObjects.Components.Chemistry;
|
||||
using Content.Server.GameObjects.Components.Sound;
|
||||
using Content.Server.GameObjects.EntitySystems;
|
||||
using Content.Server.Utility;
|
||||
using Content.Shared.Chemistry;
|
||||
using Content.Shared.Interfaces;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -59,6 +60,8 @@ namespace Content.Server.GameObjects.Components.Fluids
|
||||
|
||||
void IAfterAttack.AfterAttack(AfterAttackEventArgs eventArgs)
|
||||
{
|
||||
if (!InteractionChecks.InRangeUnobstructed(eventArgs)) return;
|
||||
|
||||
Solution solution;
|
||||
if (eventArgs.Attacked == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user