fix water fall logic
This commit is contained in:
parent
9f156e8e27
commit
0bd3f9f680
@ -214,13 +214,14 @@ public interface MovementHelper extends ActionCosts, Helper {
|
||||
return true;
|
||||
}
|
||||
if (BlockStateInterface.isWater(block)) {
|
||||
if (BlockStateInterface.isFlowing(state)) {
|
||||
return false;
|
||||
}
|
||||
Block up = BlockStateInterface.get(pos.up()).getBlock();
|
||||
if (up instanceof BlockLilyPad) {
|
||||
return true;
|
||||
}
|
||||
if (BlockStateInterface.isFlowing(state)) {
|
||||
// the only scenario in which we can walk on flowing water is if it's under still water with jesus off
|
||||
return BlockStateInterface.isWater(up) && !Baritone.settings().assumeWalkOnWater.get();
|
||||
}
|
||||
// if assumeWalkOnWater is on, we can only walk on water if there isn't water above it
|
||||
// if assumeWalkOnWater is off, we can only walk on water if there is water above it
|
||||
return BlockStateInterface.isWater(up) ^ Baritone.settings().assumeWalkOnWater.get();
|
||||
|
Loading…
Reference in New Issue
Block a user