private static void OnOxygenAmountUpdated(ref UpdateOxygenAmountMsg msg, MyNetworkClient sender)
 {
     MyCubeGrid cubeGrid;
     MyEntities.TryGetEntityById(msg.EntityId, out cubeGrid);
     if (cubeGrid != null)
     {
         if (MySession.Static.Settings.EnableOxygen)
         {
             cubeGrid.GridSystems.OxygenSystem.UpdateOxygenAmount(msg.OxygenAmount);
         }
     }
 }
            public void UpdateOxygenAmount(float[] oxygenAmount)
            {
                var msg = new UpdateOxygenAmountMsg();
                msg.EntityId = m_cubeGrid.EntityId;
                msg.OxygenAmount = oxygenAmount;

                Sync.Layer.SendMessageToAll(ref msg);
            }