fix world border checks
Signed-off-by: scorbett123 <50634068+scorbett123@users.noreply.github.com>
This commit is contained in:
parent
74ea803651
commit
49357790f1
@ -50,7 +50,7 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||||||
|
|
||||||
static boolean avoidBreaking(BlockStateInterface bsi, int x, int y, int z, IBlockState state) {
|
static boolean avoidBreaking(BlockStateInterface bsi, int x, int y, int z, IBlockState state) {
|
||||||
if (!bsi.worldBorder.canPlaceAt(x, y)) {
|
if (!bsi.worldBorder.canPlaceAt(x, y)) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
Block b = state.getBlock();
|
Block b = state.getBlock();
|
||||||
return Baritone.settings().blocksToDisallowBreaking.value.contains(b)
|
return Baritone.settings().blocksToDisallowBreaking.value.contains(b)
|
||||||
|
Loading…
Reference in New Issue
Block a user