mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
ALWAYS remove pots broken by swords.
This commit is contained in:
parent
eb2e0d3abf
commit
b8e937a234
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user