//If the player is no longer holding a gun, emulate a release of the shoot button
if(player.inventory.getCurrentItem() == null || player.inventory.getCurrentItem().getItem() == null || !(player.inventory.getCurrentItem().getItem() instanceof ItemGun))
{
data.isShootingRight = data.isShootingLeft = false;
data.offHandGunSlot = 0;
(new PacketSelectOffHandGun(0)).handleServerSide(player);
}
return;
}
//Right hand gun