Don't throw an internal block break event when lighting TNT.

This commit is contained in:
sk89q 2014-08-17 00:49:50 -07:00
parent cab42af53b
commit ff3fa759d1

View File

@ -234,14 +234,6 @@ public void onPlayerInteract(PlayerInteractEvent event) {
} }
} }
} }
// Special handling of flint and steel on TNT
if (clicked.getType() == Material.TNT && item != null && item.getType() == Material.FLINT_AND_STEEL) {
if (Events.fireAndTestCancel(new BreakBlockEvent(event, create(event.getPlayer()), clicked))) {
event.setUseInteractedBlock(Result.DENY);
break;
}
}
} }
// Special handling of putting out fires // Special handling of putting out fires