Fix compilation error

This commit is contained in:
Nicholas Ignoffo 2019-11-04 18:29:37 -08:00
parent ab33ead20f
commit ffc4429b8f

View file

@ -80,7 +80,7 @@ public class PotionEventHandlers {
if (event.getEntityLiving().isPotionActive(RegistrarBloodMagic.BOOST)) {
int amplifier = event.getEntityLiving().getActivePotionEffect(RegistrarBloodMagic.BOOST).getAmplifier();
float percentIncrease += (amplifier + 1) * 0.5F;
float percentIncrease = (amplifier + 1) * 0.5F;
boolean isPlayerAndFlying = eventEntityLiving instanceof EntityPlayer && ((EntityPlayer) eventEntityLiving).capabilities.isFlying;
if (percentIncrease != 0 && (eventEntityLiving.onGround || isPlayerAndFlying) &&