Bounce array now behaves as a pillow while sneak (#1196)
This commit is contained in:
parent
c05336ac9f
commit
74eaabff8e
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue