mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Pickblock now replaces the currently selected item if it could not find a empty space.
This commit is contained in:
1 parent
a8191d0dae
commit
0680e211fc
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user