Fix compilation error
This commit is contained in:
parent
ab33ead20f
commit
ffc4429b8f
|
@ -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) &&
|
||||
|
|
Loading…
Reference in a new issue