I was trying to get effects level, but when i use:
if (par3EntityPlayer.isPotionActive(Potion.moveSpeed.id))
{
int i = (par3EntityPlayer.getActivePotionEffect(Potion.moveSpeed.id).getAmplifier());
wantedVelocity += (1 + i) * (0.35);
}
it crashes my game. Eclipse says:'The method getActivePotionEffect(Potion) in the type EntityLivingBase is not applicable for the arguments (int)'.
crash-2014-08-13_16.29.54-server.txt
crash-2014-08-13_16.29.55-client.txt
Thanks for at least looking at my post