mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
A few minor tweaks to how feathers fall and attempt to fix falling in inverted gravity
This commit is contained in:
parent
cd010adc10
commit
fd65f1b9e1
1 changed files with 2 additions and 2 deletions
|
@ -86,10 +86,10 @@ public class ItemImpl implements Equine<ItemEntity>, Owned<ItemEntity> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stack.getItem().isIn(UTags.FALLS_SLOWLY)) {
|
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 ticks = ((Entity)owner).age;
|
||||||
double shift = Math.sin(ticks / 9D) / 9D;
|
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.prevYaw = owner.prevYaw;
|
||||||
owner.yaw += 0.3F;
|
owner.yaw += 0.3F;
|
||||||
|
|
Loading…
Reference in a new issue