

Fixed an issue where 682 wouldn't spawn when the apparatus was pulled with specific mods installed, even when in some modpacks with those exact mods this wasn't an issue. This happened when the following conditions were true:
LungProp.EquipItem was hooked before 682 hooked LungProp.DisconnectFromMachineryLungProp.EquipItem after 682 hooked LungProp.DisconnectFromMachineryThe above issue happened because of inlining, where the
LungProp.DisconnectFromMachineryis so small that the JIT compiler decides to essentially copy paste that method into theLungProp.EquipItemmethod instead of calling that method normally.Without any mods hooking the
LungProp.EquipItem, the method wouldn't get compiled before 682 hooksLungProp.DisconnectFromMachinery, so it would copy paste 682's hooked method instead, as we want.The issue was fixed by making 682 force a recompilation of the
LungProp.EquipItemmethod by applying an empty ILHook on it after hookingLungProp.DisconnectFromMachinery.