private void OnInventoryContentChanged(MyInventory sender) { if (sender.Contains(MyMwcObjectBuilderTypeEnum.SmallShip_Tool, (int)MyMwcObjectBuilder_SmallShip_Tool_TypesEnum.NANO_REPAIR_TOOL)) { if (m_nanoRepairTool == null) { m_nanoRepairTool = new MyNanoRepairToolEntity(this); } } else { m_nanoRepairTool = null; } RecheckNeedsUpdate(); }