Revert "Door opening tweaks" (#17395)

This commit is contained in:
metalgearsloth
2023-06-17 12:09:49 +10:00
committed by GitHub
parent 6120907ef5
commit b67209cb24
5 changed files with 14 additions and 20 deletions

View File

@@ -48,6 +48,16 @@ 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,