Skip to content

Commit

Permalink
Pickblock now replaces the currently selected item if it could not fi…
Browse files Browse the repository at this point in the history
…nd a empty space.
  • Loading branch information
LexManos committed Aug 22, 2012
1 parent a8191d0 commit 0680e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/net/minecraftforge/common/ForgeHooks.java
Expand Up @@ -277,7 +277,7 @@ public static boolean onPickBlock(MovingObjectPosition target, EntityPlayer play
int slot = player.inventory.getFirstEmptyStack();
if (slot < 0 || slot >= 9)
{
return false;
slot = player.inventory.currentItem;
}

player.inventory.setInventorySlotContents(slot, result);
Expand Down

0 comments on commit 0680e21

Please sign in to comment.