mirror of https://github.com/cabaletta/baritone
also don't construct an optional for slabs
This commit is contained in:
parent
8018dac396
commit
5b7bee977b
|
@ -384,7 +384,10 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||
if (((BlockSlab) block).isDouble()) {
|
||||
return TRUE;
|
||||
}
|
||||
return Optional.of(state.getValue(BlockSlab.HALF) != BlockSlab.EnumBlockHalf.BOTTOM);
|
||||
if (state.getValue(BlockSlab.HALF) != BlockSlab.EnumBlockHalf.BOTTOM) {
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue