Improve BadPackets, fix #187/#194

This commit is contained in:
Rammelkast committed 2021-11-30 19:26:25 +01:00
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 {