Explicitly check if useItem is not denied, allows for denying the item without denying the block

This commit is contained in:
LexManos 2012-12-23 23:15:53 -08:00
parent 1c225a8d0d
commit 0562fd85b9
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@
+ }
+ }
+
+ if (par3ItemStack != null && !result)
+ if (par3ItemStack != null && !result && event.useItem != Event.Result.DENY)
+ {
+ int meta = par3ItemStack.getItemDamage();
+ int size = par3ItemStack.stackSize;