smh conner, imagine getting the same block position 2x without caching

This commit is contained in:
Leijurv 2019-07-31 20:47:46 -07:00
parent 57d4a79496
commit 5f721b544e
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -113,8 +113,9 @@ public class MovementParkour extends Movement {
if (!MovementHelper.fullyPassable(context, destX, y + 2, destZ)) { if (!MovementHelper.fullyPassable(context, destX, y + 2, destZ)) {
return; return;
} }
if (!MovementHelper.fullyPassable(context, destX, y, destZ)) { IBlockState destInto = context.bsi.get0(destX, y, destZ);
if (i <= 3 && context.allowParkourAscend && context.canSprint && MovementHelper.canWalkOn(context.bsi, destX, y, destZ) && checkOvershootSafety(context.bsi, destX + xDiff, y + 1, destZ + zDiff)) { if (!MovementHelper.fullyPassable(destInto)) {
if (i <= 3 && context.allowParkourAscend && context.canSprint && MovementHelper.canWalkOn(context.bsi, destX, y, destZ, destInto) && checkOvershootSafety(context.bsi, destX + xDiff, y + 1, destZ + zDiff)) {
res.x = destX; res.x = destX;
res.y = y + 1; res.y = y + 1;
res.z = destZ; res.z = destZ;