Fix for bugs #40 and #41 - fixed false positives on normal ascension (ladder and swimming)

This commit is contained in:
H31IX committed 2012-06-08 15:42:57 -04:00
1 parent 25bfa6449d
commit 6db2d521ae
2 files changed
+7 -3

No files matched your search

@@ -108,6 +108,10 @@ public final class Utilities
{
return player.getLocation().getBlock().isLiquid() && player.getLocation().getBlock().getRelative(BlockFace.UP).isLiquid();
}
public static boolean isOnLadder(Player player)
{
return player.getLocation().getBlock().getType() == Material.VINE || player.getLocation().getBlock().getType() == Material.LADDER;
}
public static boolean isInt(String string)
{
boolean x = false;