mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix #205
This commit is contained in:
1 parent
b27ffc9842
commit
f123e397b6
4 files changed
+20
-14
No files matched your search
@@ -218,15 +218,13 @@ public final class MovementManager {
|
||||
}
|
||||
}
|
||||
|
||||
if (VersionUtil.CURRENT_VERSION.isAtLeast(MinecraftVersion.AQUATIC_UPDATE)) {
|
||||
if (player.isRiptiding()) {
|
||||
this.riptideTicks = 30;
|
||||
if (VersionUtil.isRiptiding(player)) {
|
||||
this.riptideTicks = 30;
|
||||
} else {
|
||||
if (this.riptideTicks > 0) {
|
||||
this.riptideTicks--;
|
||||
} else {
|
||||
if (this.riptideTicks > 0) {
|
||||
this.riptideTicks--;
|
||||
} else {
|
||||
this.riptideTicks = 0;
|
||||
}
|
||||
this.riptideTicks = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,7 +245,7 @@ public final class MovementManager {
|
||||
final Location bottom = to.clone().add(0, -1, 0);
|
||||
this.bottomSolid = bottom.getBlock().getType().isSolid();
|
||||
|
||||
if ((this.motionY > 0.42D && this.motionY <= 0.5625D)
|
||||
if ((this.motionY > 0.42f && this.motionY <= 0.5625f)
|
||||
&& (Utilities.couldBeOnHalfblock(to) || Utilities.isNearBed(to))) {
|
||||
this.halfMovement = true;
|
||||
this.halfMovementHistoryCounter = 30;
|
||||
|
||||
Reference in new issue
Block a user