From b95c6ad6f6b83b6ba215acea9becd80bb7c697e8 Mon Sep 17 00:00:00 2001 From: WayofTime Date: Sat, 1 Nov 2014 17:55:00 -0400 Subject: [PATCH] Fixed Heavy Heart effect to allow it to work on players --- .../common/AlchemicalWizardryEventHooks.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/AlchemicalWizardryEventHooks.java b/src/main/java/WayofTime/alchemicalWizardry/common/AlchemicalWizardryEventHooks.java index 8c12fd36..9dc7769f 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/AlchemicalWizardryEventHooks.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/AlchemicalWizardryEventHooks.java @@ -474,6 +474,11 @@ public class AlchemicalWizardryEventHooks { entityLiving.motionY -= decrease; } + + if(entityLiving instanceof EntityPlayer) + { + SpellHelper.setPlayerSpeedFromServer((EntityPlayer)entityLiving, entityLiving.motionX, entityLiving.motionY - decrease, entityLiving.motionZ); + } } if (entityLiving.isPotionActive(AlchemicalWizardry.customPotionFireFuse))