We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1776a5 commit dc7a2bfCopy full SHA for dc7a2bf
common/src/main/kotlin/com/lambda/interaction/request/interacting/InteractionManager.kt
@@ -106,7 +106,9 @@ object InteractionManager : RequestHandler<InteractionRequest>(
106
107
private fun populateFrom(request: InteractionRequest) {
108
setPendingConfigs(request)
109
- potentialInteractions = request.contexts.toMutableList()
+ potentialInteractions = request.contexts
110
+ .filter { pendingInteractions.none { pending -> pending.context.blockPos == it.blockPos } }
111
+ .toMutableList()
112
113
val pendingLimit = (request.build.maxPendingInteractions - pendingPlacements.size).coerceAtLeast(0)
114
maxInteractionsThisTick = (request.build.interactionsPerTick.coerceAtMost(pendingLimit))
0 commit comments