fix flowing water detection for assumeWalkOnWater

This commit is contained in:
Leijurv 2018-09-15 08:00:24 -07:00
parent 19b47d77e5
commit 0b30e822c2
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -250,7 +250,7 @@ public interface MovementHelper extends ActionCosts, Helper {
if (up instanceof BlockLilyPad) { if (up instanceof BlockLilyPad) {
return true; return true;
} }
if (BlockStateInterface.isFlowing(state)) { if (BlockStateInterface.isFlowing(state) || block == Blocks.FLOWING_WATER) {
// the only scenario in which we can walk on flowing water is if it's under still water with jesus off // 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(); return BlockStateInterface.isWater(up) && !Baritone.settings().assumeWalkOnWater.get();
} }