Hopefully fixed seemingly random attacks of failed checks while climbing

This commit is contained in:
H31IX committed 2012-08-04 13:34:09 -04:00
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)