mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix #174
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user