Fix errors

This commit is contained in:
DrSmugleaf
2021-12-05 21:02:04 +01:00
parent 2a3b7d809d
commit ab9d0cc6d8
94 changed files with 568 additions and 591 deletions

View File

@@ -34,10 +34,10 @@ namespace Content.Server.Labels
private void AfterInteractOn(EntityUid uid, HandLabelerComponent handLabeler, AfterInteractEvent args)
{
if (args.Target == null || !handLabeler.Whitelist.IsValid(args.Target))
if (args.Target is not {Valid: true} target || !handLabeler.Whitelist.IsValid(target))
return;
AddLabelTo(uid, handLabeler, args.Target, out string? result);
AddLabelTo(uid, handLabeler, target, out string? result);
if (result != null)
handLabeler.Owner.PopupMessage(args.User, result);
}