We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08ad2cf commit 5a42837Copy full SHA for 5a42837
1 file changed
src/main/kotlin/com/lambda/interaction/construction/simulation/result/Contextual.kt
@@ -25,6 +25,7 @@ import com.lambda.interaction.managers.hotbar.HotbarManager
25
import com.lambda.interaction.managers.rotating.RotationManager
26
import com.lambda.threading.runSafe
27
import com.lambda.util.BlockUtils
28
+import net.minecraft.block.Blocks
29
30
/**
31
* Represents a result holding a [BuildContext].
@@ -43,6 +44,8 @@ interface Contextual : ComparableResult<Rank> {
43
44
}.thenByDescending {
45
if (it is InteractContext) it.cachedState.fluidState.level
46
else Int.MIN_VALUE
47
+ }.thenByDescending {
48
+ it.cachedState.block != Blocks.OBSERVER
49
50
context.sorter == ActionConfig.SortMode.Tool && it.hotbarIndex == HotbarManager.serverSlot
51
}.thenBy {
0 commit comments