A few minor tweaks to how feathers fall and attempt to fix falling in inverted gravity

This commit is contained in:
Sollace 2021-02-28 16:37:38 +02:00
parent cd010adc10
commit fd65f1b9e1

View file

@ -86,10 +86,10 @@ public class ItemImpl implements Equine<ItemEntity>, Owned<ItemEntity> {
}
if (stack.getItem().isIn(UTags.FALLS_SLOWLY)) {
if (!owner.isOnGround()) {
if (!owner.isOnGround() && Math.signum(owner.getVelocity().y) != getPhysics().getGravitySignum()) {
double ticks = ((Entity)owner).age;
double shift = Math.sin(ticks / 9D) / 9D;
double rise = Math.cos(ticks / 9D) * getPhysics().getGravitySignum();
double rise = -Math.cos(ticks / 9D) * getPhysics().getGravitySignum();
owner.prevYaw = owner.prevYaw;
owner.yaw += 0.3F;