Door opening tweaks (#16799)

This commit is contained in:
metalgearsloth
2023-06-13 20:30:04 +10:00
committed by GitHub
parent 8fd8b878bf
commit c24c6e93ec
5 changed files with 20 additions and 14 deletions

View File

@@ -46,16 +46,6 @@ public sealed class DoorSystem : SharedDoorSystem
SubscribeLocalEvent<DoorComponent, GotEmaggedEvent>(OnEmagged);
}
protected override void OnActivate(EntityUid uid, DoorComponent door, ActivateInWorldEvent args)
{
// TODO once access permissions are shared, move this back to shared.
if (args.Handled || !door.ClickOpen)
return;
TryToggleDoor(uid, door, args.User);
args.Handled = true;
}
protected override void SetCollidable(
EntityUid uid,
bool collidable,