Fixed mcMMO TreeFeller causing longreach false-positives

This commit is contained in:
h31ix committed 2012-09-30 17:00:03 -04:00
1 parent 08a6d29c9e
commit b5eaf0bfe8
2 files changed
+18 -13

No files matched your search

@@ -186,7 +186,14 @@ public class Backend
public boolean checkLongReachBlock(Player player, double x, double y, double z)
{
return (x >= magic.BLOCK_MAX_DISTANCE || y > magic.BLOCK_MAX_DISTANCE || z > magic.BLOCK_MAX_DISTANCE);
if(isInstantBreakExempt(player))
{
return false;
}
else
{
return (x >= magic.BLOCK_MAX_DISTANCE || y > magic.BLOCK_MAX_DISTANCE || z > magic.BLOCK_MAX_DISTANCE);
}
}
public boolean checkLongReachDamage(double x, double y, double z)