@@ -30,7 +30,6 @@ import com.lambda.interaction.request.PositionBlocking
3030import com.lambda.interaction.request.Priority
3131import com.lambda.interaction.request.RequestHandler
3232import com.lambda.interaction.request.breaking.BreakManager
33- import com.lambda.interaction.request.hotbar.HotbarManager
3433import com.lambda.interaction.request.placing.PlaceManager.activeRequest
3534import com.lambda.interaction.request.placing.PlaceManager.processRequest
3635import com.lambda.interaction.request.placing.PlacedBlockHandler.addPendingPlace
@@ -134,7 +133,7 @@ object PlaceManager : RequestHandler<PlaceRequest>(
134133
135134 if (ctx.sneak) shouldSneak = true
136135 if (! ctx.requestDependencies(request) || ! validSneak(player)) return
137- if (tickStage !in request.build.placing.placeStageMask) return
136+ // if (tickStage !in request.build.placing.placeStageMask) return
138137
139138 val actionResult = placeBlock(ctx, request, Hand .MAIN_HAND )
140139 if (! actionResult.isAccepted) warn(" Placement interaction failed with $actionResult " )
@@ -145,21 +144,18 @@ object PlaceManager : RequestHandler<PlaceRequest>(
145144 }
146145
147146 /* *
148- * Filters and sorts the [request]'s [PlaceContext]s, placing them into the [potentialPlacements] collection, and
147+ * Filters the [request]'s [PlaceContext]s, placing them into the [potentialPlacements] collection, and
149148 * setting the maxPlacementsThisTick value.
150149 *
151150 * @see canPlace
152151 */
153- private fun SafeContext. populateFrom (request : PlaceRequest ) {
152+ private fun populateFrom (request : PlaceRequest ) {
154153 val place = request.build.placing
155154
156155 setPendingConfigs(request)
157156 potentialPlacements = request.contexts
158157 .filter { canPlace(it) }
159- .sortedWith(
160- compareByDescending<PlaceContext > { it.hotbarIndex == HotbarManager .serverSlot }
161- .thenByDescending { it.sneak == player.isSneaking }
162- ).toMutableList()
158+ .toMutableList()
163159
164160 val pendingLimit = (place.maxPendingPlacements - pendingPlacements.size).coerceAtLeast(0 )
165161 maxPlacementsThisTick = (place.placementsPerTick.coerceAtMost(pendingLimit))
0 commit comments