From 4a40bd9e65c59837917bea71582d6954ed7e43d7 Mon Sep 17 00:00:00 2001 From: Raymond Beehler <21GunSoftware@comcast.net> Date: Tue, 18 Aug 2026 09:25:44 -0700 Subject: [PATCH] Fix hatch IEnumerator CheckForConnections to support PhysicsHold mod When PhysicsHold is installed an enabled on a base, a few bugs occur. The most annoying one is that hatches from inside the base cease to function with FreeIVA. This is because the vessel appears in a packed state. Since you can only open hatches in FreeIVA mode on a packed vessel you are actually inside (and the bug does not occur from outside), simply checking if we are the active vessel before yielding null should suffice. --- FreeIva/InternalModules/Hatches/Hatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeIva/InternalModules/Hatches/Hatch.cs b/FreeIva/InternalModules/Hatches/Hatch.cs index 010830bd..0b22d2c2 100644 --- a/FreeIva/InternalModules/Hatches/Hatch.cs +++ b/FreeIva/InternalModules/Hatches/Hatch.cs @@ -446,7 +446,7 @@ IEnumerator CheckForConnection() { yield return null; - while (vessel.packed) + while (vessel.packed && !vessel.isActiveVessel) { yield return null; }