Merge pull request #3579 from lucasarden/master
Stop backfill from filling while paused
This commit is contained in:
commit
55273b5340
@ -56,12 +56,12 @@ public final class BackfillProcess extends BaritoneProcessHelper {
|
|||||||
Baritone.settings().backfill.value = false;
|
Baritone.settings().backfill.value = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
amIBreakingABlockHMMMMMMM();
|
|
||||||
for (BlockPos pos : new ArrayList<>(blocksToReplace.keySet())) {
|
for (BlockPos pos : new ArrayList<>(blocksToReplace.keySet())) {
|
||||||
if (ctx.world().getChunk(pos) instanceof EmptyChunk) {
|
if (ctx.world().getChunk(pos) instanceof EmptyChunk || ctx.world().getBlockState(pos).getBlock() != Blocks.AIR) {
|
||||||
blocksToReplace.remove(pos);
|
blocksToReplace.remove(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
amIBreakingABlockHMMMMMMM();
|
||||||
baritone.getInputOverrideHandler().clearAllKeys();
|
baritone.getInputOverrideHandler().clearAllKeys();
|
||||||
|
|
||||||
return !toFillIn().isEmpty();
|
return !toFillIn().isEmpty();
|
||||||
@ -93,7 +93,7 @@ public final class BackfillProcess extends BaritoneProcessHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void amIBreakingABlockHMMMMMMM() {
|
private void amIBreakingABlockHMMMMMMM() {
|
||||||
if (!ctx.getSelectedBlock().isPresent()) {
|
if (!ctx.getSelectedBlock().isPresent() || !baritone.getPathingBehavior().isPathing()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
blocksToReplace.put(ctx.getSelectedBlock().get(), ctx.world().getBlockState(ctx.getSelectedBlock().get()));
|
blocksToReplace.put(ctx.getSelectedBlock().get(), ctx.world().getBlockState(ctx.getSelectedBlock().get()));
|
||||||
|
Loading…
Reference in New Issue
Block a user