Skip to content

Commit

Permalink
Fixed inconsistency with ForgeHooks
Browse files Browse the repository at this point in the history
  • Loading branch information
fuj1n committed Jun 6, 2020
1 parent e6956d4 commit 962394a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -619,7 +619,7 @@ public ActionResultType doPlaceBlock(DrawbridgeItemUseContext context) {
if (!(itemstack.getItem() instanceof BucketItem)) // if not bucket
world.captureBlockSnapshots = true;

ItemStack copy = itemstack.isDamageable() ? itemstack.copy() : ItemStack.EMPTY;
ItemStack copy = itemstack.copy();
ActionResultType ret = item.tryPlace(context);
if (itemstack.isEmpty())
ForgeEventFactory.onPlayerDestroyItem(player, copy, context.getHand());
Expand Down

0 comments on commit 962394a

Please sign in to comment.