From ffc4429b8f74d1dda42665f78e80cee758f2d20e Mon Sep 17 00:00:00 2001 From: Nicholas Ignoffo <nick@tehnut.info> Date: Mon, 4 Nov 2019 18:29:37 -0800 Subject: [PATCH] Fix compilation error --- .../java/WayofTime/bloodmagic/potion/PotionEventHandlers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/WayofTime/bloodmagic/potion/PotionEventHandlers.java b/src/main/java/WayofTime/bloodmagic/potion/PotionEventHandlers.java index d24da73d..f96323fc 100644 --- a/src/main/java/WayofTime/bloodmagic/potion/PotionEventHandlers.java +++ b/src/main/java/WayofTime/bloodmagic/potion/PotionEventHandlers.java @@ -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) &&