Skip to content

Commit bc62c2d

Browse files
committed
size - 1 to match the index of an empty fluid state
1 parent 3a93e9e commit bc62c2d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ interface Contextual : ComparableResult<Rank> {
3737
when (other) {
3838
is Contextual -> compareBy<BuildContext> {
3939
if (it is InteractContext) BlockUtils.fluids.indexOf(it.cachedState.fluidState.fluid)
40-
else BlockUtils.fluids.size
40+
else BlockUtils.fluids.size - 1
4141
}.thenByDescending {
4242
if (it is InteractContext && it.cachedState.fluidState.level != 0) it.blockPos.y
4343
else Int.MIN_VALUE

0 commit comments

Comments
 (0)