Bounce array now behaves as a pillow while sneak (#1196)

This commit is contained in:
Nicholas Ignoffo 2018-02-17 16:37:04 -08:00
parent c05336ac9f
commit 74eaabff8e

View file

@ -22,7 +22,7 @@ public class AlchemyArrayEffectBounce extends AlchemyArrayEffect {
@Override @Override
public void onEntityCollidedWithBlock(IAlchemyArray array, World world, BlockPos pos, IBlockState state, Entity entity) { public void onEntityCollidedWithBlock(IAlchemyArray array, World world, BlockPos pos, IBlockState state, Entity entity) {
if (entity.isSneaking()) { if (entity.isSneaking()) {
return; entity.fallDistance = 0;
} else if (entity.motionY < 0.0D) { } else if (entity.motionY < 0.0D) {
entity.motionY = -entity.motionY; entity.motionY = -entity.motionY;