Advertisement
Guest User

Untitled

a guest
Oct 29th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. @EventHandler
  2. public void onBlockDamage(EntityExplodeEvent ev) {
  3.  
  4. if (ev.getEntityType() == EntityType.PRIMED_TNT) {
  5.  
  6. List<Block> blocks = ev.blockList();
  7.  
  8. for (Block block : blocks) {
  9. if (block.getType() == Material.WOOL) {
  10. blocks.remove(block);
  11. }
  12. }
  13.  
  14. }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement