Skip to content

Commit

Permalink
Merge pull request #1866 from GiganticMinecraft/revert-m2en-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective authored Feb 6, 2023
2 parents 4968d64 + b2fcbe0 commit 8311d09
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ case class MineStackObject[ItemStack: Cloneable](
name: String
)(implicit gachaPrizeAPI: GachaPrizeAPI[F, ItemStack, Player]): F[Option[ItemStack]] = {
if (category != MineStackObjectCategory.GACHA_PRIZES) return Sync[F].pure(None)
println("gachaPrize")

implicit val canBeSignedAsGachaPrize: CanBeSignedAsGachaPrize[ItemStack] =
gachaPrizeAPI.canBeSignedAsGachaPrize

for {
foundGachaPrize <- gachaPrizeAPI.findOfRegularGachaPrizesByNotSignedItemStack(itemStack)
} yield {
println(s"foundGachaPrize: ${foundGachaPrize.isDefined}")
foundGachaPrize.map { gachaPrize => gachaPrize.materializeWithOwnerSignature(name) }
}
}
Expand Down

0 comments on commit 8311d09

Please sign in to comment.