Fixed false positives with boats, changes to MorePackets

This commit is contained in:
Rammelkast committed 2020-06-09 14:33:54 +02:00
1 parent db9aa97ca1
commit 610d53550f
6 files changed
+32 -4

No files matched your search

@@ -124,7 +124,8 @@ public class SpeedCheck {
&& !VersionUtil.isRiptiding(player)
&& !Utilities.isNearBed(distance.getTo())
&& !Utilities.isSlime(AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
.getGoodLocation(player.getLocation()).getBlock())) {
.getGoodLocation(player.getLocation()).getBlock())
&& !Utilities.couldBeOnBoat(player)) {
return new CheckResult(CheckResult.Result.FAILED,
"y speed was too high (speed=" + distance.getYDifference() + ", max=" + backend.getMagic().Y_SPEED_MAX() + ")");
} else {