mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Only change the hitbox when going at rinboom speeds
This commit is contained in:
parent
6bf7568481
commit
736e9a3f11
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue