Skip to content

Commit 66cafc2

Browse files
committed
Hot Fix : Cooking mode inventory is maintained after action (Cook, change tab, select other items)
1 parent a0a4610 commit 66cafc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UOP1_Project/Assets/Scripts/UI/Inventory/UIInventory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ void UnselectItem(int itemIndex)
328328
}
329329
void UpdateInventory()
330330
{
331-
FillInventory(_selectedTab.TabType);
331+
FillInventory(_selectedTab.TabType, _isNearPot);
332332
}
333333

334334
void OnActionButtonClicked()
@@ -397,7 +397,7 @@ void CookRecipe(ItemSO recipeToCook)
397397
void OnChangeTab(InventoryTabSO tabType)
398398
{
399399

400-
FillInventory(tabType.TabType);
400+
FillInventory(tabType.TabType, _isNearPot);
401401

402402
}
403403
public void CloseInventory()

0 commit comments

Comments
 (0)