This commit is contained in:
Leijurv
2018-09-07 13:35:14 -07:00
3 changed files with 4 additions and 3 deletions

View File

@@ -47,8 +47,8 @@ public class GoalGetToBlock implements Goal {
int xDiff = pos.getX() - this.x;
int yDiff = pos.getY() - this.y;
int zDiff = pos.getZ() - this.z;
if (yDiff == -2 && xDiff == 0 && zDiff == 0) {
return true;
if (yDiff < 0) {
yDiff++;
}
return Math.abs(xDiff) + Math.abs(yDiff) + Math.abs(zDiff) <= 1;
}