Re-do InteractionSystem IEntity -> EntityUid conversion (#5767)

This commit is contained in:
Vera Aguilera Puerto
2021-12-14 06:17:18 +01:00
committed by GitHub
parent fe1836c99d
commit e3478f894e
5 changed files with 76 additions and 82 deletions

View File

@@ -35,10 +35,10 @@ namespace Content.Server.Chemistry.EntitySystems
public void OnClickAttack(EntityUid uid, HyposprayComponent comp, ClickAttackEvent args)
{
var target = args.TargetEntity;
var user = args.User;
if (args.Target == null)
return;
comp.TryDoInject(target, user);
comp.TryDoInject(args.Target.Value, args.User);
}
}
}