Explicitly check if useItem is not denied, allows for denying the item without denying the block
This commit is contained in:
parent
1c225a8d0d
commit
0562fd85b9
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ if (par3ItemStack != null && !result)
|
+ if (par3ItemStack != null && !result && event.useItem != Event.Result.DENY)
|
||||||
+ {
|
+ {
|
||||||
+ int meta = par3ItemStack.getItemDamage();
|
+ int meta = par3ItemStack.getItemDamage();
|
||||||
+ int size = par3ItemStack.stackSize;
|
+ int size = par3ItemStack.stackSize;
|
||||||
|
|
Loading…
Reference in a new issue