Add inventory persistence restore hook

This commit is contained in:
2026-05-17 13:56:28 -07:00
parent 09eed7c4c4
commit ac9fee463c
7 changed files with 95 additions and 3 deletions
@@ -231,7 +231,7 @@ int32 UAgrarianPersistenceSubsystem::RestorePlayers(const UAgrarianSaveGame* Sav
if (UAgrarianInventoryComponent* InventoryComponent = Character->GetInventoryComponent())
{
InventoryComponent->Items = SavedPlayer->Inventory;
InventoryComponent->RestoreSavedItems(SavedPlayer->Inventory);
}
RestoredCount++;