Skip to content

Commit

Permalink
Hotfix lumberjack pathfinding
Browse files Browse the repository at this point in the history
  • Loading branch information
someaddons authored and Raycoms committed Mar 24, 2024
1 parent 7a9ccba commit 8c1e437
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected double modifyCost(double cost, final MNode parent, final int x, final
}
}

if (!restrictionBox.contains(x, y, z))
if (restrictionBox != null && !restrictionBox.contains(x, y, z))
{
cost *= 2;
}
Expand Down

0 comments on commit 8c1e437

Please # to comment.