Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/ai/jobs/CpAIJob.lua
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function CpAIJob:detectFieldBoundary()
return false, false, g_i18n:getText("CP_error_not_on_field")
end
if vehicle:cpIsFieldBoundaryDetectionRunning() then
return false, false, g_i18n:getText("CP_error_field_detection_still_running")
return false, true, g_i18n:getText("CP_error_field_detection_still_running")
end
local x, z = vehicle:cpGetFieldPosition()
if x == tx and z == tz then
Expand Down
5 changes: 3 additions & 2 deletions scripts/ai/jobs/CpAIJobFieldWork.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ function CpAIJobFieldWork:validate(farmId)
end
local vehicle = self.vehicleParameter:getVehicle()

--- Only check the valid field position in the in game menu.
--- Only check the valid field boundary in the in game menu.
if not self.isDirectStart then
isValid, isRunning, errorMessage = self:detectFieldBoundary()
if not isValid then
if not isValid and not isRunning then
self:debug("no boundary and no field detection is running");
return isValid, errorMessage
end
self.cpJobParameters:validateSettings()
Expand Down
Loading