add buildValidSubstitutes setting to builder
This commit is contained in:
@ -215,6 +215,13 @@ public final class Settings {
|
|||||||
|
|
||||||
)));
|
)));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A mapping of blocks to blocks treated as correct in their position
|
||||||
|
* <p>
|
||||||
|
* If a schematic asks for a block on this mapping, all blocks on the mapped list will be accepted at that location as well
|
||||||
|
*/
|
||||||
|
public final Setting<Map<Block, List<Block>>> buildValidSubstitutes = new Setting<>(new HashMap<>());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of blocks to become air
|
* A list of blocks to become air
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -797,6 +797,9 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
|
|||||||
if (Baritone.settings().buildSkipBlocks.value.contains(desired.getBlock()) && !itemVerify) {
|
if (Baritone.settings().buildSkipBlocks.value.contains(desired.getBlock()) && !itemVerify) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (Baritone.settings().buildValidSubstitutes.value.getOrDefault(desired.getBlock(), Arrays.asList()).contains(current.getBlock()) && !itemVerify) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return current.equals(desired);
|
return current.equals(desired);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user