Re-add exemption for instant break markers

This commit is contained in:
h31ix committed 2013-01-15 17:59:53 -05:00
1 parent 15a1329d19
commit 8c82571b86
1 file changed
+1 -1
@@ -625,7 +625,7 @@ public class Backend {
public CheckResult checkFastBreak(Player player, Block block) {
int violations = magic.FASTBREAK_MAXVIOLATIONS;
long timemax = Utilities.calcSurvivalFastBreak(player.getInventory().getItemInHand(), block.getType());
long timemax = isInstantBreakExempt(player) ? 0 : Utilities.calcSurvivalFastBreak(player.getInventory().getItemInHand(), block.getType());
if (player.getGameMode() == GameMode.CREATIVE) {
violations = magic.FASTBREAK_MAXVIOLATIONS_CREATIVE;
timemax = magic.FASTBREAK_TIMEMAX_CREATIVE;