From 736e9a3f117827c7a6a27443e30b2373e1ec79f0 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 26 Sep 2018 00:13:30 +0200 Subject: [PATCH] Only change the hitbox when going at rinboom speeds --- .../minelittlepony/unicopia/player/PlayerGravityDelegate.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/player/PlayerGravityDelegate.java b/src/main/java/com/minelittlepony/unicopia/player/PlayerGravityDelegate.java index d16c0030..3a87dfba 100644 --- a/src/main/java/com/minelittlepony/unicopia/player/PlayerGravityDelegate.java +++ b/src/main/java/com/minelittlepony/unicopia/player/PlayerGravityDelegate.java @@ -45,7 +45,9 @@ class PlayerGravityDelegate implements IUpdatable, 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 {