Skip to content

Commit

Permalink
Merge pull request #2097 from GiganticMinecraft/fix/shared-inv
Browse files Browse the repository at this point in the history
fix: インベントリ共有において、SequentialEffectが実行されていなかったのを修正
  • Loading branch information
rito528 authored Jun 11, 2023
2 parents 1c229ad + da5481f commit 0546d5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ class ShareInventoryCommand[F[_]: ConcurrentEffect](
val sender = context.sender
for {
sharedFlag <- sharedInventoryAPI.sharedFlag(sender).toIO
_ <-
eff <-
if (sharedFlag == SharedFlag.Sharing) {
withdrawFromSharedInventory(sender)
} else {
depositToSharedInventory(sender)
}
} yield emptyEffect
} yield eff
}
.build()
.asNonBlockingTabExecutor()
Expand Down

0 comments on commit 0546d5b

Please sign in to comment.