Only change the hitbox when going at rinboom speeds

This commit is contained in:
Sollace 2018-09-26 00:13:30 +02:00
parent 6bf7568481
commit 736e9a3f11

View file

@ -45,7 +45,9 @@ class PlayerGravityDelegate implements IUpdatable<EntityPlayer>, IGravity, InbtS
isFlying = entity.capabilities.isFlying && !entity.capabilities.isCreativeMode;
if (isFlying) {
boolean rainboom = Math.sqrt(getHorizontalMotion(entity)) > 0.4F;
if (isFlying && rainboom) {
MixinEntity.setSize(entity, entity.width, 0.5F);
entity.eyeHeight = entity.height / 2;
} else {