UseInHandEvent cleanup (#35231)

This commit is contained in:
slarticodefast
2025-02-18 13:27:30 +01:00
committed by GitHub
parent e09ef5aa6f
commit d171057680
9 changed files with 45 additions and 25 deletions

View File

@@ -41,6 +41,9 @@ public sealed class HandTeleporterSystem : EntitySystem
private void OnUseInHand(EntityUid uid, HandTeleporterComponent component, UseInHandEvent args)
{
if (args.Handled)
return;
if (Deleted(component.FirstPortal))
component.FirstPortal = null;
@@ -67,6 +70,8 @@ public sealed class HandTeleporterSystem : EntitySystem
_doafter.TryStartDoAfter(doafterArgs);
}
args.Handled = true;
}