mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Hopefully a quick fix for issue #71 - check for vines before fly check
This commit is contained in:
1 parent
79b6b787ff
commit
6e4b4e4e46
2 files changed
+10
-5
No files matched your search
@@ -126,10 +126,15 @@ 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 isOnLadder(Player player)
|
||||
public static boolean isOnClimbableBlock(Player player)
|
||||
{
|
||||
return player.getLocation().getBlock().getType() == Material.VINE || player.getLocation().getBlock().getType() == Material.LADDER;
|
||||
}
|
||||
|
||||
public static boolean isOnVine(Player player)
|
||||
{
|
||||
return player.getLocation().getBlock().getType() == Material.VINE;
|
||||
}
|
||||
|
||||
public static boolean isInt(String string)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user