Skip to content

Commit

Permalink
Pickblock will new compare NBT data, should allow mods to refine ther…
Browse files Browse the repository at this point in the history
…e result better.
  • Loading branch information
LexManos committed Oct 28, 2012
1 parent b52f397 commit dc7db59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/net/minecraftforge/common/ForgeHooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public static boolean onPickBlock(MovingObjectPosition target, EntityPlayer play
for (int x = 0; x < 9; x++)
{
ItemStack stack = player.inventory.getStackInSlot(x);
if (stack != null && stack.isItemEqual(result))
if (stack != null && stack.isItemEqual(result) && ItemStack.func_77970_a(stack, result))
{
player.inventory.currentItem = x;
return true;
Expand Down

0 comments on commit dc7db59

Please sign in to comment.