Add enderchest and anvil to blacklist inventories.

This commit is contained in:
Wizjany 2013-01-14 13:31:54 -05:00
parent 6e270d5ec3
commit 833795ebe1

View File

@ -850,7 +850,9 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
&& type != BlockID.FURNACE
&& type != BlockID.BURNING_FURNACE
&& type != BlockID.BREWING_STAND
&& type != BlockID.ENCHANTMENT_TABLE)) {
&& type != BlockID.ENCHANTMENT_TABLE
&& type != BlockID.ANVIL
&& type != BlockID.ENDER_CHEST)) {
if (!wcfg.getBlacklist().check(
new ItemUseBlacklistEvent(plugin.wrapPlayer(player), toVector(block),
item.getTypeId()), false, false)) {