This commit is contained in:
Rammelkast committed 2021-09-15 09:58:59 +02:00
1 parent a1f7a0cf7f
commit 5f1dc37679
4 files changed
+119 -49

No files matched your search

@@ -41,6 +41,8 @@ public final class MovementManager {
public int iceInfluenceTicks = 0;
// Ticks influenced by slime
public int slimeInfluenceTicks = 0;
// Ticks influenced by soil
public int soilInfluenceTicks = 0;
// Y motion of the movement
public double motionY;
// Previous Y motion of the movement
@@ -162,6 +164,14 @@ public final class MovementManager {
this.slimeInfluenceTicks--;
}
}
if (Utilities.couldBeOnSoil(to)) {
this.soilInfluenceTicks = 6;
} else {
if (this.soilInfluenceTicks > 0) {
this.soilInfluenceTicks--;
}
}
if (VersionUtil.isGliding(player)) {
this.elytraEffectTicks = 30;