setting for nether fortress

This commit is contained in:
Leijurv 2023-07-31 00:18:43 -07:00
parent 83feddf6be
commit cc8afe95c5
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 6 additions and 1 deletions

View File

@ -1426,6 +1426,11 @@ public final class Settings {
*/
public final Setting<Integer> elytraCacheCullDistance = new Setting<>(5000);
/**
* Should elytra consider nether brick a valid landing block
*/
public final Setting<Boolean> elytraAllowLandOnNetherFortress = new Setting<>(false);
/**
* A map of lowercase setting field names to their respective setting
*/

View File

@ -423,7 +423,7 @@ public class ElytraProcess extends BaritoneProcessHelper implements IBaritonePro
}
private boolean isSafeBlock(Block block) {
return block == Blocks.NETHERRACK || block == Blocks.GRAVEL || block == Blocks.NETHER_BRICK;
return block == Blocks.NETHERRACK || block == Blocks.GRAVEL || (block == Blocks.NETHER_BRICK && Baritone.settings().elytraAllowLandOnNetherFortress.value);
}
private boolean isSafeBlock(BlockPos pos) {