[F] Remove air block when pruning

This commit is contained in:
Hykilpikonna
2020-02-19 23:06:45 -05:00
parent 9753b3e3ba
commit 0f94b958bc
@@ -409,6 +409,9 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
// remove any that are within loaded chunks that aren't actually what we want
.filter(pos -> settings().mineWithSeed.value || !ctx.bsi.worldContainsLoadedChunk(pos.getX(), pos.getZ()) || filter.has(ctx.get(pos.getX(), pos.getY(), pos.getZ())) || dropped.contains(pos))
// Hyritone: remove air
.filter(pos -> !settings().mineWithSeed.value || !ctx.get(pos).isAir() || dropped.contains(pos))
// remove any that are implausible to mine (encased in bedrock, or touching lava)
.filter(pos -> MineProcess.plausibleToBreak(ctx, pos))