Fix compilation error
This commit is contained in:
parent
ab33ead20f
commit
ffc4429b8f
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ public class PotionEventHandlers {
|
||||||
|
|
||||||
if (event.getEntityLiving().isPotionActive(RegistrarBloodMagic.BOOST)) {
|
if (event.getEntityLiving().isPotionActive(RegistrarBloodMagic.BOOST)) {
|
||||||
int amplifier = event.getEntityLiving().getActivePotionEffect(RegistrarBloodMagic.BOOST).getAmplifier();
|
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;
|
boolean isPlayerAndFlying = eventEntityLiving instanceof EntityPlayer && ((EntityPlayer) eventEntityLiving).capabilities.isFlying;
|
||||||
if (percentIncrease != 0 && (eventEntityLiving.onGround || isPlayerAndFlying) &&
|
if (percentIncrease != 0 && (eventEntityLiving.onGround || isPlayerAndFlying) &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue