Pickblock now replaces the currently selected item if it could not find a empty space.
This commit is contained in:
parent
a8191d0dae
commit
0680e211fc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue