Log instant break for instaBreak events AND instantBreak blocks

This commit is contained in:
h31ix committed 2012-12-22 10:40:14 -05:00
1 parent 69aee38cb6
commit c696f21fdd
1 file changed
+1 -1
@@ -41,7 +41,7 @@ public class BlockListener extends EventListener {
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
public void onBlockDamage(BlockDamageEvent event) { public void onBlockDamage(BlockDamageEvent event) {
Player player = event.getPlayer(); Player player = event.getPlayer();
if (event.getInstaBreak() && Utilities.isInstantBreak(event.getBlock().getType())) { if (event.getInstaBreak() || Utilities.isInstantBreak(event.getBlock().getType())) {
backend.logInstantBreak(player); backend.logInstantBreak(player);
} }
if (checkManager.willCheck(player, CheckType.AUTOTOOL) && backend.justSwitchedTool(player)) { if (checkManager.willCheck(player, CheckType.AUTOTOOL) && backend.justSwitchedTool(player)) {