Pickblock now replaces the currently selected item if it could not find a empty space.

This commit is contained in:
LexManos 2012-08-22 13:46:01 -07:00
parent a8191d0dae
commit 0680e211fc

View file

@ -277,7 +277,7 @@ public class ForgeHooks
int slot = player.inventory.getFirstEmptyStack();
if (slot < 0 || slot >= 9)
{
return false;
slot = player.inventory.currentItem;
}
player.inventory.setInventorySlotContents(slot, result);