mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Improve BadPackets, fix #187/#194
This commit is contained in:
1 parent
9d97803d5c
commit
f32efaedee
6 files changed
+40
-33
No files matched your search
@@ -202,7 +202,8 @@ public class Backend {
|
||||
if (y <= 0.11761 && y >= 0.11759 && !Utilities.isClimbableBlock(player.getLocation().getBlock())
|
||||
&& !Utilities.isClimbableBlock(player.getEyeLocation().getBlock())
|
||||
&& !Utilities.isClimbableBlock(player.getLocation().clone().add(0, -0.98, 0).getBlock())
|
||||
&& !Utilities.isNearClimbable(player)) {
|
||||
&& !Utilities.isNearClimbable(player)
|
||||
&& !player.isGliding()) {
|
||||
return new CheckResult(CheckResult.Result.FAILED,
|
||||
"tried to climb a non-climbable block (" + player.getLocation().getBlock().getType() + ")");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user