fix selection of items for placing being weird
This commit is contained in:
parent
32fed35beb
commit
25fea447a5
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ data class CastingContext(
|
|||
val stacksToExamine = DiscoveryHandlers.collectItemSlots(this)
|
||||
|
||||
fun matches(stack: ItemStack): Boolean =
|
||||
!stack.isEmpty && ItemStack.matches(item, stack)
|
||||
!stack.isEmpty && ItemStack.isSameItemSameTags(item, stack)
|
||||
|
||||
val presentCount = stacksToExamine.fold(0) { acc, stack ->
|
||||
acc + if (matches(stack)) stack.count else 0
|
||||
|
|
Loading…
Reference in a new issue