mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Hopefully fixed seemingly random attacks of failed checks while climbing
This commit is contained in:
1 parent
59e26344fb
commit
c56ea8151c
3 files changed
+36
-36
No files matched your search
@@ -133,9 +133,9 @@ public final class Utilities
|
||||
return player.getLocation().getBlock().isLiquid() || player.getLocation().getBlock().getRelative(BlockFace.DOWN).isLiquid() || player.getLocation().getBlock().getRelative(BlockFace.UP).isLiquid();
|
||||
}
|
||||
|
||||
public static boolean isOnClimbableBlock(Player player)
|
||||
public static boolean isClimbableBlock(Block block)
|
||||
{
|
||||
return player.getLocation().getBlock().getType() == Material.VINE || player.getLocation().getBlock().getType() == Material.LADDER;
|
||||
return block.getType() == Material.VINE || block.getType() == Material.LADDER;
|
||||
}
|
||||
|
||||
public static boolean isOnVine(Player player)
|
||||
|
||||
Reference in new issue
Block a user