I'm new to modding and I'm mainly just trying to update a mod I used that has not been updated to 1.11.2, I want to be able to remove the fov change you get from speed/slowness potion effects. (YES I KNOW ABOUT OPTIFINE DYNAMIC FOV, I don't want it to effect sprinting or bows though.) I am mainly having trouble figuring out how to tell if a player has a status effect (IE, speed or slowness). I have tried quite a few things and tried to look this up everywhere but it all must be for different versions or something because I keep getting errors. (I'm using eclipse but if you know how to do this in another lang I would prob switch to that) Here is my current code, if it helps you understand what im trying to do. 
 
  }
  
  @SubscribeEvent
  public void onFOVUpdate(FOVUpdateEvent event)
  {
    EntityPlayer player = event.getEntity();
    float fov = 1.0F;
    
	
		
    if(player.isPotionActive(SPEED);) {
      event.setNewfov(1.0f);
    }
    if(player.isPotionActive(2);) {
        event.setNewfov(1.0f);
    }
  }
	The if statement is my problem.
 
	 
 
	Mod I'm trying to update: https://minecraft.curseforge.com/projects/fov-control  (by update I mean just the parts I want because I'm lazy lol)