UseInHandEvent cleanup (#35231)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user