fixed crucial bug that prevented you from falling all the way to bedrock

This commit is contained in:
Leijurv 2018-08-08 15:55:18 -07:00
parent 6148166f71
commit 24496d1de7
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -223,7 +223,7 @@ public interface MovementHelper extends ActionCosts, Helper {
// let's see how far we can fall
for (int fallHeight = 3; true; fallHeight++) {
BlockPos onto = dest.down(fallHeight);
if (onto.getY() <= 0) {
if (onto.getY() < 0) {
break;
}
IBlockState ontoBlock = BlockStateInterface.get(onto);