From b8e937a2342a0a51ec1d27b4da5f17e6c2fa1618 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 4 Oct 2013 13:16:41 -0400 Subject: [PATCH] ALWAYS remove pots broken by swords. --- src/main/java/com/gmail/nossr50/listeners/BlockListener.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index 811c6766d..c38bf2755 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -221,6 +221,11 @@ public class BlockListener implements Listener { blockState.update(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)) {