Skip to content

Commit

Permalink
Merge pull request #2098 from U-lis/feature/new-enhancement
Browse files Browse the repository at this point in the history
Update all avatar related states
  • Loading branch information
U-lis authored Aug 25, 2023
2 parents 0e4f6bc + 50716da commit f4ea4b7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Lib9c/Action/ItemEnhancement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,9 @@ public override IAccountStateDelta Execute(IActionContext context)
sw.Restart();
states = states
.SetState(inventoryAddress, avatarState.inventory.Serialize())
.SetState(questListAddress, avatarState.questList.Serialize());
if (migrationRequired)
{
states = states
.SetState(worldInformationAddress, avatarState.worldInformation.Serialize())
.SetState(avatarAddress, avatarState.SerializeV2());
}
.SetState(worldInformationAddress, avatarState.worldInformation.Serialize())
.SetState(questListAddress, avatarState.questList.Serialize())
.SetState(avatarAddress, avatarState.SerializeV2());

sw.Stop();
Log.Verbose("{AddressesHex} ItemEnhancement Set AvatarState: {Elapsed}", addressesHex,
Expand Down

0 comments on commit f4ea4b7

Please sign in to comment.