Skip to content

Commit 5a42837

Browse files
committed
place observers last
1 parent 08ad2cf commit 5a42837

File tree

1 file changed

+3
-0
lines changed
  • src/main/kotlin/com/lambda/interaction/construction/simulation/result

1 file changed

+3
-0
lines changed

src/main/kotlin/com/lambda/interaction/construction/simulation/result/Contextual.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import com.lambda.interaction.managers.hotbar.HotbarManager
2525
import com.lambda.interaction.managers.rotating.RotationManager
2626
import com.lambda.threading.runSafe
2727
import com.lambda.util.BlockUtils
28+
import net.minecraft.block.Blocks
2829

2930
/**
3031
* Represents a result holding a [BuildContext].
@@ -43,6 +44,8 @@ interface Contextual : ComparableResult<Rank> {
4344
}.thenByDescending {
4445
if (it is InteractContext) it.cachedState.fluidState.level
4546
else Int.MIN_VALUE
47+
}.thenByDescending {
48+
it.cachedState.block != Blocks.OBSERVER
4649
}.thenByDescending {
4750
context.sorter == ActionConfig.SortMode.Tool && it.hotbarIndex == HotbarManager.serverSlot
4851
}.thenBy {

0 commit comments

Comments
 (0)