File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/com/lambda/interaction/construction/simulation/checks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,6 @@ class BreakChecker @SimCheckerDsl private constructor(simInfo: SimInfo)
8585 }
8686
8787 private suspend fun AutomatedSafeContext.checkBreaks (): Boolean {
88- if (state.isEmpty) return false
89-
9088 if (breakConfig.avoidSupporting) player.supportingBlockPos.getOrNull()?.let { support ->
9189 if (support != pos) return @let
9290 result(BreakResult .PlayerOnTop (pos, state))
@@ -98,6 +96,8 @@ class BreakChecker @SimCheckerDsl private constructor(simInfo: SimInfo)
9896 return simInfo(pos, state, TargetState .Solid (emptySet()))?.checkPlacements() ? : true
9997 }
10098
99+ if (state.isEmpty) return false
100+
101101 if (breakConfig.avoidLiquids && affectsFluids()) return true
102102
103103 val (swapStack, stackSelection) = getSwapStack() ? : return true
You can’t perform that action at this time.
0 commit comments