From 069051bf3bb416765723c8e453d40c5836359826 Mon Sep 17 00:00:00 2001 From: Phil Date: Sun, 17 Feb 2019 16:45:57 -0500 Subject: [PATCH] Modified Living Armour's Step Assist to only apply when the player is not sneaking. (#1545) --- .../util/handler/event/LivingArmourHandler.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/WayofTime/bloodmagic/util/handler/event/LivingArmourHandler.java b/src/main/java/WayofTime/bloodmagic/util/handler/event/LivingArmourHandler.java index 1bff2668..6a701a0f 100644 --- a/src/main/java/WayofTime/bloodmagic/util/handler/event/LivingArmourHandler.java +++ b/src/main/java/WayofTime/bloodmagic/util/handler/event/LivingArmourHandler.java @@ -265,8 +265,14 @@ public class LivingArmourHandler if (upgrade instanceof LivingArmourUpgradeStepAssist) { - player.stepHeight = ((LivingArmourUpgradeStepAssist) upgrade).getStepAssist(); - hasAssist = true; + if (!player.isSneaking()) + { + player.stepHeight = ((LivingArmourUpgradeStepAssist) upgrade).getStepAssist(); + hasAssist = true; + } else + { + player.stepHeight = 0.6F; + } } } }