We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8feac4a commit 9fbe5eeCopy full SHA for 9fbe5ee
1 file changed
NGUInjector/Managers/InventoryManager.cs
@@ -558,7 +558,7 @@ public static void RestoreMacguffins()
558
{
559
Inventory.item1 = i + 1000000;
560
// Equip highest level MacGuffins
561
- Inventory.item2 = allMacguffins.AllMaxBy(x => x.equip.level).First(x => x.equip.id == _savedMacguffins[i]).i;
+ Inventory.item2 = allMacguffins.Where(x => x.equip.id == _savedMacguffins[i]).AllMaxBy(x => x.equip.level).First().i;
562
563
_ic.swapMacguffin();
564
}
0 commit comments