Fix prying shut unpowered doors (#35380)

This commit is contained in:
Pieter-Jan Briers
2025-02-22 04:05:22 +01:00
committed by GitHub
parent 7f8f1bfb94
commit 732d9dc2b7
3 changed files with 11 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ public abstract class SharedAirlockSystem : EntitySystem
// the initial power-check.
if (TryComp(uid, out DoorComponent? door)
&& !door.Partial
&& !args.Partial
&& !CanChangeState(uid, airlock))
{
args.Cancel();