Hopefully a quick fix for issue #71 - check for vines before fly check

This commit is contained in:
H31IX committed 2012-06-13 20:51:00 -04:00
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)
{