Also use the player's inventory to handle NEI fills
If the items for a recipe are not available in the ME network when you shift-left-click the NEI question mark, also try to pull from the player's inventory. The 'ic' local variable was renamed to 'testInv', as it's used to test the IRecipe on various crafting propositions to see if the item satisfies the recipe. Closes #564, "Shift clicking "?" on NEI recipe ignores items in the player's inventory".
This commit is contained in:
@@ -447,6 +447,10 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
||||
@Override
|
||||
public IInventory getInventoryByName(String name)
|
||||
{
|
||||
if (name.equals("player"))
|
||||
{
|
||||
return invPlayer;
|
||||
}
|
||||
return ct.getInventoryByName( name );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user