fix movement ascend x z cardinal asymmetry, fixes #204

This commit is contained in:
Leijurv 2018-10-02 15:02:27 -07:00
parent da137f35de
commit baf27363aa
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -71,7 +71,7 @@ public class MovementAscend extends Movement {
return COST_INF;// the only thing we can ascend onto from a bottom slab is another bottom slab
}
boolean hasToPlace = false;
if (!MovementHelper.canWalkOn(destX, y, z, toPlace)) {
if (!MovementHelper.canWalkOn(destX, y, destZ, toPlace)) {
if (!context.hasThrowaway()) {
return COST_INF;
}