mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Adjusted ascent speed
This commit is contained in:
parent
736ced3a51
commit
b2edae1766
1 changed files with 2 additions and 4 deletions
|
@ -128,8 +128,6 @@ class PlayerGravityDelegate implements IUpdatable, IGravity, InbtSerialisable, I
|
|||
|
||||
EntityPlayer entity = player.getOwner();
|
||||
|
||||
System.out.println(isExperienceCritical() && player.isRemote());
|
||||
|
||||
if (isExperienceCritical() && player.isRemote()) {
|
||||
Random rnd = player.getWorld().rand;
|
||||
|
||||
|
@ -281,10 +279,10 @@ class PlayerGravityDelegate implements IUpdatable, IGravity, InbtSerialisable, I
|
|||
|
||||
// vertical drop due to gravity
|
||||
if (sneak) {
|
||||
player.motionY -= (0.05F - getHorizontalMotion(player) / 100) * factor;
|
||||
player.motionY -= (0.005F - getHorizontalMotion(player) / 100) * factor;
|
||||
} else {
|
||||
forward += 0.005F;
|
||||
player.motionY -= 0.0005F * factor;
|
||||
player.motionY -= 0.0001F * factor;
|
||||
}
|
||||
|
||||
player.motionX += - forward * MathHelper.sin(player.rotationYaw * 0.017453292F);
|
||||
|
|
Loading…
Reference in a new issue