Skip to content

Commit 1449055

Browse files
committed
return true for filterBuildResults if its not an interact or break result as these arent affected by the flatten apply modes
1 parent 377a42b commit 1449055

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/main/kotlin/com/lambda/module/modules/world

src/main/kotlin/com/lambda/module/modules/world/Printer.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ object Printer : Module(
8686
* @return true if the build result should be built, false if it should be ignored
8787
*/
8888
private fun SafeContext.filterBuildResults(buildResult: BuildResult): Boolean {
89+
if (buildResult !is InteractResult && buildResult !is BreakResult) return true
8990
return if (buildResult is InteractResult && !flattenModeApply.placing ||
9091
buildResult is BreakResult && !flattenModeApply.breaking) true
9192
else isInFlatten(buildResult.pos, flattenMode, sneakLowersFlatten, baritoneSelection, inverseSelection)

0 commit comments

Comments
 (0)