1
0
mirror of https://github.com/cabaletta/baritone synced 2024-12-17 20:55:09 +00:00

resolve comment

This commit is contained in:
Babbaj 2023-07-23 00:53:26 -04:00
parent 58723a33ca
commit 9e78443595
No known key found for this signature in database
GPG Key ID: F044309848A07CAC

View File

@ -370,10 +370,10 @@ public class ElytraProcess extends BaritoneProcessHelper implements IBaritonePro
BlockPos.MutableBlockPos mut = new BlockPos.MutableBlockPos(pos);
while (mut.getY() >= 0) {
IBlockState state = ctx.world().getBlockState(mut);
if (state.getMaterial().isLiquid()) { // lava
if (state.getMaterial().isLiquid() || state.getBlock() != Blocks.MAGMA) { // lava
return false;
}
if (state.getMaterial().blocksMovement() && state.getBlock() != Blocks.MAGMA) {
if (state.getMaterial().blocksMovement()) {
return !isAtEdge(mut);
}
mut.setPos(mut.getX(), mut.getY() - 1, mut.getZ());