public void Draw(EntityRenderer entRenderer, ItemViewbob viewbob) { // Render item in hand if (SelectedItem != null) { if (SelectedItem.Type.HasFlag(ItemType.Gun)) { Gun gun = (Gun)SelectedItem; // Render muzzle flash ((ClientMuzzleFlash)muzzleFlash).Render(gun, entRenderer, viewbob); } SelectedItem.Draw(viewbob); } }