public static void Postfix(StorageLockerSmart __instance, LogicPorts ___ports) { __instance.Subscribe(Convert.ToInt32(GameHashes.LogicEvent), logicValueChanged => { var changed = (LogicValueChanged)logicValueChanged; if (changed.portID == DropPortID && changed.newValue == 1) { CheckAndDrop(__instance, ___ports); } }); }