add buildSkipBlocks setting

This commit is contained in:
ZacSharp 2021-01-12 23:59:11 +01:00
parent 16cfcb36a3
commit 7988274d61
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
2 changed files with 12 additions and 0 deletions

View File

@ -206,6 +206,15 @@ public final class Settings {
)));
/**
* A list of blocks to be treated as correct.
* <p>
* If a schematic asks for any block on this list at a certain position, it will be treated as correct, regardless of what it currently is.
*/
public final Setting<List<Block>> buildSkipBlocks = new Setting<>(new ArrayList<>(Arrays.asList(
)));
/**
* A list of blocks to become air
* <p>

View File

@ -794,6 +794,9 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
if (!(current.getBlock() instanceof BlockAir) && Baritone.settings().buildIgnoreExisting.value && !itemVerify) {
return true;
}
if (Baritone.settings().buildSkipBlocks.value.contains(desired.getBlock())) {
return true;
}
return current.equals(desired);
}