ALWAYS remove pots broken by swords.

This commit is contained in:
GJ 2013-10-04 13:16:41 -04:00
parent eb2e0d3abf
commit b8e937a234

View File

@ -221,6 +221,11 @@ public class BlockListener implements Listener {
blockState.update(true); blockState.update(true);
event.setCancelled(true); event.setCancelled(true);
} }
else if (blockState.getType() == Material.FLOWER_POT) {
blockState.setType(Material.AIR);
blockState.update(true);
event.setCancelled(true);
}
} }
} }
else if (ItemUtils.isPickaxe(heldItem) && !heldItem.containsEnchantment(Enchantment.SILK_TOUCH)) { else if (ItemUtils.isPickaxe(heldItem) && !heldItem.containsEnchantment(Enchantment.SILK_TOUCH)) {