@SideOnly(Side.CLIENT)
private void checkForShooting()
{
if(Mouse.isButtonDown(0) && !wasShooting && !FlansMod.proxy.isScreenOpen())
{
FlansMod.getPacketHandler().sendToServer(new PacketMGFire(true));
wasShooting = true;
}
else if(!Mouse.isButtonDown(0) && wasShooting)
{
FlansMod.getPacketHandler().sendToServer(new PacketMGFire(false));
wasShooting = false;
}
}