mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Fixed false positives with boats, changes to MorePackets
This commit is contained in:
1 parent
db9aa97ca1
commit
610d53550f
6 files changed
+32
-4
No files matched your search
@@ -60,7 +60,8 @@ public class FlightCheck {
|
||||
&& Utilities.blockIsnt(player.getLocation().getBlock().getRelative(BlockFace.DOWN),
|
||||
new Material[] { Utilities.IRON_BARS })
|
||||
&& Utilities.blockIsnt(player.getLocation().getBlock().getRelative(BlockFace.DOWN),
|
||||
new String[] { "FENCE", "FENCE_GATE" })) {
|
||||
new String[] { "FENCE", "FENCE_GATE" })
|
||||
&& !Utilities.couldBeOnBoat(player)) {
|
||||
if (!BLOCKS_OVER_FLIGHT.containsKey(uuid)) {
|
||||
BLOCKS_OVER_FLIGHT.put(uuid, 0D);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user